From 404cabc645eae6ef2e03df39e3abf8e77a4e89c0 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 30 Sep 2014 10:43:16 +0300 Subject: [PATCH] build: list required libraries explicitly clang doesn't add those libraries itself, add them explicitly. --- configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 2546e6ddf9..e89b965665 100755 --- a/configure.py +++ b/configure.py @@ -48,7 +48,7 @@ modes = { 'debug': { 'sanitize': '-fsanitize=address -fsanitize=leak -fsanitize=undefined', 'opt': '-O0', - 'libs': '', + 'libs': '-lubsan -lasan', }, 'release': { 'sanitize': '', @@ -57,7 +57,7 @@ modes = { }, } -libs = '-laio -lboost_program_options -lboost_system' +libs = '-laio -lboost_program_options -lboost_system -lstdc++' import os, os.path, textwrap, argparse, sys