Addressing build issue coming from LLVM bug 16902

This commit is contained in:
Dmitry Babokin
2015-04-02 18:38:06 +03:00
parent 93a7c14e95
commit 3e8f33da68

View File

@@ -1,5 +1,5 @@
# #
# Copyright (c) 2010-2014, Intel Corporation # Copyright (c) 2010-2015, Intel Corporation
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # 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)) # 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)) ifeq (,$(filter $(LLVM_VERSION), LLVM_3_2 LLVM_3_3 LLVM_3_4))
ISPC_LIBS += -lcurses -lz 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 endif
ifeq ($(ARCH_OS),Linux) ifeq ($(ARCH_OS),Linux)