From ea8591a85a6ac494ce3395cfbeca17e196a3d463 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 10 Aug 2013 11:22:43 -0700 Subject: [PATCH] Fix build with LLVM top-of-tree (link libcurses) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 5bac4a6e..69e24d41 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,10 @@ CLANG_LIBS = -lclangFrontend -lclangDriver \ ISPC_LIBS=$(shell $(LLVM_CONFIG) --ldflags) $(CLANG_LIBS) $(LLVM_LIBS) \ -lpthread +ifeq ($(LLVM_VERSION),LLVM_3_4) + ISPC_LIBS += -lcurses +endif + ifeq ($(ARCH_OS),Linux) ISPC_LIBS += -ldl endif