From 1e02bf092a9fd770add1e416121411e30afd86b3 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Tue, 18 Aug 2009 15:29:35 +0000 Subject: [PATCH] CMake: LLVM_ENABLE_PIC now defaults to ON, as in `configure'. This is 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 | 2 +- docs/CMake.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae858f57945..a95ca51d18a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) diff --git a/docs/CMake.html b/docs/CMake.html index 1ef7abeef2a..741e8dac0b6 100644 --- a/docs/CMake.html +++ b/docs/CMake.html @@ -264,9 +264,9 @@ CMAKE_BUILD_TYPE is Release.
LLVM_ENABLE_PIC:BOOL
-
Add the -fPIC flag to the compiler command-line, if the - compiler supports this flag. Some systems, like Windows, does not - need this flag. Defaults to OFF.
+
Add the -fPIC flag for the compiler command-line, if the + compiler supports this flag. Some systems, like Windows, do not + need this flag. Defaults to ON.
LLVM_BUILD_32_BITS:BOOL
Build 32-bits executables and libraries on 64-bits systems. This