[llvm-commits] [llvm] r123122 - /llvm/trunk/CMakeLists.txt

Oscar Fuentes ofv at wanadoo.es
Sun Jan 9 09:38:31 PST 2011


Author: ofv
Date: Sun Jan  9 11:38:31 2011
New Revision: 123122

URL: http://llvm.org/viewvc/llvm-project?rev=123122&view=rev
Log:
Apply -fPIC to C sources too.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=123122&r1=123121&r2=123122&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Sun Jan  9 11:38:31 2011
@@ -210,6 +210,7 @@
     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()





More information about the llvm-commits mailing list