Skip to content

Instantly share code, notes, and snippets.

@skroll
Created October 10, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skroll/d22f4e1af6136df70492 to your computer and use it in GitHub Desktop.
Save skroll/d22f4e1af6136df70492 to your computer and use it in GitHub Desktop.
sparse 5.0 patch to fix builds when llvm is on system
--- 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