Linux SPARSE checker discussions
 help / color / mirror / Atom feed
* [PATCH] Link binaries with system libraries needed by LLVM
@ 2014-10-02 14:19 Anatol Pomozov
  2014-10-02 19:53 ` Josh Triplett
  0 siblings, 1 reply; 5+ messages in thread
From: Anatol Pomozov @ 2014-10-02 14:19 UTC (permalink / raw)
  To: linux-sparse; +Cc: dan.carpenter, sparse, Anatol Pomozov

It is needed on Linux Arch with latest LLVM installed

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 28c4df6..25087d7 100644
--- a/Makefile
+++ b/Makefile
@@ -112,11 +112,12 @@ LLVM_PROGS := sparse-llvm
 $(LLVM_PROGS): LD := g++
 LLVM_LDFLAGS := $(shell llvm-config --ldflags)
 LLVM_CFLAGS := $(shell llvm-config --cflags | sed -e "s/-DNDEBUG//g")
+LLVM_SYSTEM_LIBS := $(shell llvm-config --system-libs)
 LLVM_LIBS := $(shell llvm-config --libs)
 PROGRAMS += $(LLVM_PROGS)
 INST_PROGRAMS += sparse-llvm sparsec
 sparse-llvm.o: BASIC_CFLAGS += $(LLVM_CFLAGS)
-sparse-llvm_EXTRA_OBJS := $(LLVM_LIBS) $(LLVM_LDFLAGS)
+sparse-llvm_EXTRA_OBJS := $(LLVM_SYSTEM_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS)
 endif
 endif
 
-- 
2.1.0.rc2.206.gedb03e5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-02 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 14:19 [PATCH] Link binaries with system libraries needed by LLVM Anatol Pomozov
2014-10-02 19:53 ` Josh Triplett
2014-10-02 20:05   ` Anatol Pomozov
2014-10-02 20:09   ` Anatol Pomozov
2014-10-02 20:11   ` Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox