From 73c732e4fff35bd42fd6dbcea030cfe3ad7245d4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 21 Oct 2011 11:50:34 +0200 Subject: [PATCH] interface/Makefile.am: append extra copy of CLANG_LDFLAGS to LDADD 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 --- interface/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/Makefile.am b/interface/Makefile.am index 3ccd81c..89644b9 100644 --- a/interface/Makefile.am +++ b/interface/Makefile.am @@ -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 -- 2.7.4