From 3e8f33da684a2b3cceb87b5d38fb97f46bc262d0 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 2 Apr 2015 18:38:06 +0300 Subject: [PATCH] Addressing build issue coming from LLVM bug 16902 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f04bc3de..8834b6be 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# Copyright (c) 2010-2014, Intel Corporation +# Copyright (c) 2010-2015, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -124,6 +124,13 @@ endif # This 'ifneq' acts like if( !($(LLVM_VERSION) == LLVM_3_2 || $(LLVM_VERSION) == LLVM_3_3 || $(LLVM_VERSION) == LLVM_3_4)) ifeq (,$(filter $(LLVM_VERSION), LLVM_3_2 LLVM_3_3 LLVM_3_4)) ISPC_LIBS += -lcurses -lz + # This is here because llvm-config fails to report dependency on tinfo library in some case. + # This is described in LLVM bug 16902. + ifeq ($(ARCH_OS),Linux) + ifneq ($(shell ldconfig -p |grep -c option), 0) + ISPC_LIBS += -ltinfo + endif + endif endif ifeq ($(ARCH_OS),Linux)