diff options
| author | Omar Sandoval <osandov@osandov.com> | 2014-09-24 14:01:01 -0700 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2014-09-25 08:15:11 +0800 |
| commit | d92353b4eacbac54d693edd62fb565f071e3ba86 (patch) | |
| tree | 0e3ab2673a9208b2c69d9a9597e35289816636b5 /Makefile | |
| parent | 5119a12a0efd88f0f997699b80e26beec10c4e73 (diff) | |
| download | sparse-dev-d92353b4eacbac54d693edd62fb565f071e3ba86.tar.gz | |
sparse-llvm: Fix LLVM 3.5 linker errors
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@osandov.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -88,6 +88,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) |
