CMake: LLVM_ENABLE_PIC now defaults to ON, as in `configure'. This is
authorOscar Fuentes <ofv@wanadoo.es>
Tue, 18 Aug 2009 15:29:35 +0000 (15:29 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Tue, 18 Aug 2009 15:29:35 +0000 (15:29 +0000)
required on some platforms for building shared libraries that link to
the LLVM libraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79339 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
docs/CMake.html

index ae858f579453f4ddd5bffe978ad6e2a90e525512..a95ca51d18a157406e3646577e408d2efd81b955 100644 (file)
@@ -159,7 +159,7 @@ endif(WIN32)
 
 include(config-ix)
 
-option(LLVM_ENABLE_PIC "Build Position-Independent Code" OFF)
+option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
 
 set(ENABLE_PIC 0)
 if( LLVM_ENABLE_PIC )
index 1ef7abeef2a221b69e454d2a12a318ee9a8c50be..741e8dac0b630b4b3e6fa112e92c311578553fc1 100644 (file)
     CMAKE_BUILD_TYPE is <i>Release</i>.</dd>
 
   <dt><b>LLVM_ENABLE_PIC</b>:BOOL</dt>
-  <dd>Add the <i>-fPIC</i> flag to the compiler command-line, if the
-    compiler supports this flag. Some systems, like Windows, does not
-    need this flag. Defaults to OFF.</dd>
+  <dd>Add the <i>-fPIC</i> flag for the compiler command-line, if the
+    compiler supports this flag. Some systems, like Windows, do not
+    need this flag. Defaults to ON.</dd>
 
   <dt><b>LLVM_BUILD_32_BITS</b>:BOOL</dt>
   <dd>Build 32-bits executables and libraries on 64-bits systems. This