llvm-config 3.5 no longer lists the non-LLVM libraries needed for linkage when passed --libs. The --system-libs flag was added for this purpose. This adds these libraries while silently doing nothing for older versions of LLVM. Signed-off-by: Omar Sandoval <osandov@xxxxxxxxxxx> --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index c3f3104..17bce6f 100644 --- a/Makefile +++ b/Makefile @@ -87,6 +87,7 @@ $(LLVM_PROGS): LD := g++ LLVM_LDFLAGS := $(shell llvm-config --ldflags) LLVM_CFLAGS := $(shell llvm-config --cflags | sed -e "s/-DNDEBUG//g") LLVM_LIBS := $(shell llvm-config --libs) +LLVM_LIBS += $(shell llvm-config --system-libs 2>/dev/null) PROGRAMS += $(LLVM_PROGS) INST_PROGRAMS += sparse-llvm sparsec sparse-llvm.o: BASIC_CFLAGS += $(LLVM_CFLAGS) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html