Created
October 10, 2014 16:07
-
-
Save skroll/d22f4e1af6136df70492 to your computer and use it in GitHub Desktop.
sparse 5.0 patch to fix builds when llvm is on system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/Makefile | |
+++ b/Makefile | |
@@ -87,6 +87,7 @@ | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment