[polly] r228204 - Build the isl files as PIC
Tobias Grosser
tobias at grosser.es
Wed Feb 4 13:56:28 PST 2015
Author: grosser
Date: Wed Feb 4 15:56:28 2015
New Revision: 228204
URL: http://llvm.org/viewvc/llvm-project?rev=228204&view=rev
Log:
Build the isl files as PIC
Otherwise we get linker errors.
Modified:
polly/trunk/CMakeLists.txt
Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=228204&r1=228203&r2=228204&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Wed Feb 4 15:56:28 2015
@@ -54,6 +54,9 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
OUTPUT_VARIABLE LLVM_CXX_FLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${LLVM_CXX_FLAGS})
+
+ # Make sure the isl c files are built as fPIC
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif(NOT DEFINED LLVM_MAIN_SRC_DIR)
set(POLLY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
More information about the llvm-commits
mailing list