interface/Makefile.am: append extra copy of CLANG_LDFLAGS to LDADD
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Oct 2011 09:50:34 +0000 (11:50 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Oct 2011 09:50:34 +0000 (11:50 +0200)
For some reason, llvm-config includes system libraries as part of
--ldflags instead of --libs.  Since some of the libraries in
CLANG_LIBS may depend on the system libraries, we need to make
sure those system libraries are (also) listed after CLANG_LIBS.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
interface/Makefile.am

index 3ccd81c..89644b9 100644 (file)
@@ -16,7 +16,7 @@ extract_interface_SOURCES = \
 extract_interface_LDADD = \
        -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
        -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
-       $(CLANG_LIBS)
+       $(CLANG_LIBS) $(CLANG_LDFLAGS)
 
 test: extract_interface
        ./extract_interface$(EXEEXT) $(INCLUDES) $(srcdir)/all.h