Skip to content

Commit

Permalink
Fix system libs makefile problem on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Burzillo committed Jun 5, 2015
1 parent e6d8455 commit 25f3e3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Expand Up @@ -14,13 +14,17 @@ endif

LLVMFLAGS = $(shell llvm-config --cxxflags)
LLVMLDFLAGS = $(shell llvm-config --ldflags)
LLVMLIBS = $(shell llvm-config --libs core --system-libs)
LLVMLIBS = $(shell llvm-config --libs core)

SYSTEMLIBS = $(shell llvm-config --system-libs 2> /dev/null; echo $$?)
ifeq ($(SYSTEM_LIBS), 0)
LLVMLIBS += $(shell llvm-config --system-libs)
endif

LIBS = $(LLVMLIBS)
FLAGS = $(INCL) $(LLVMFLAGS)

ARCH = $(shell getconf LONG_BIT)

ifeq ($(ARCH), 32)
FLAGS += -DARCH_32
else
Expand Down

0 comments on commit 25f3e3c

Please sign in to comment.