diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-09 17:38:31 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-09 17:38:31 +0000 |
commit | 6abea2b0a451afd0ae47f471a3bb2bdc5b1d3f04 (patch) | |
tree | 5e537a4feadaa1dd37f053345e7d16750e2bd81d /CMakeLists.txt | |
parent | aa2be8435693dfe73dac64de3e2b6b3f19df1eac (diff) | |
download | external_llvm-6abea2b0a451afd0ae47f471a3bb2bdc5b1d3f04.zip external_llvm-6abea2b0a451afd0ae47f471a3bb2bdc5b1d3f04.tar.gz external_llvm-6abea2b0a451afd0ae47f471a3bb2bdc5b1d3f04.tar.bz2 |
Apply -fPIC to C sources too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7daaa82..7b2f2c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,6 +210,7 @@ if( LLVM_ENABLE_PIC ) if( SUPPORTS_FPIC_FLAG ) message(STATUS "Building with -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") + set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") else( SUPPORTS_FPIC_FLAG ) message(WARNING "-fPIC not supported.") endif() |