llvm.org GIT mirror llvm / 1e02bf0
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 Oscar Fuentes 10 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
158158
159159 include(config-ix)
160160
161 option(LLVM_ENABLE_PIC "Build Position-Independent Code" OFF)
161 option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
162162
163163 set(ENABLE_PIC 0)
164164 if( LLVM_ENABLE_PIC )
263263 CMAKE_BUILD_TYPE is Release.
264264
265265
LLVM_ENABLE_PIC:BOOL
266
Add the -fPIC flag to the compiler command-line, if the
267 compiler supports this flag. Some systems, like Windows, does not
268 need this flag. Defaults to OFF.
266
Add the -fPIC flag for the compiler command-line, if the
267 compiler supports this flag. Some systems, like Windows, do not
268 need this flag. Defaults to ON.
269269
270270
LLVM_BUILD_32_BITS:BOOL
271271
Build 32-bits executables and libraries on 64-bits systems. This