diff options
author | Marcin Slusarz <[email protected]> | 2011-10-13 21:45:45 +0200 |
---|---|---|
committer | Marcin Slusarz <[email protected]> | 2011-10-17 22:57:27 +0200 |
commit | 757390491cfa3b861fab76940a8c6e508d1f1a25 (patch) | |
tree | a69fb54b0b227d8131cd057f653dbc61d1113ae2 /configure.ac | |
parent | c0573fb29df6defe58f4898f0b8a42e8b9214d36 (diff) |
gallium/targets: use c++ compiler for linking
As pointed out by Michel Dänzer, gcc -lstdc++ doesn't work on all systems,
because it may require other libraries which are only pulled in implicitly
by g++. And libstdc++ is available only with GNU compiler.
Use c++ compiler for linking and remove redundant LDFLAGS += -lstdc++
all over the tree.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3f951ecf1c1..0864b55af0e 100644 --- a/configure.ac +++ b/configure.ac @@ -1748,7 +1748,7 @@ if test "x$enable_gallium_llvm" = xyes; then if test "x$LLVM_CONFIG" != xno; then LLVM_VERSION=`$LLVM_CONFIG --version` LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed 's/-DNDEBUG\>//g'` - LLVM_LIBS="`$LLVM_CONFIG --libs` -lstdc++" + LLVM_LIBS="`$LLVM_CONFIG --libs`" LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags` DEFINES="$DEFINES -D__STDC_CONSTANT_MACROS" |