summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-13 17:12:47 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-13 17:49:48 (GMT)
commit5c8c1d624d9b56e400637e996fd060add09180a3 (patch)
tree81cd45e2dac69a18c7f59fbc61f6f3d3993fee39 /Modules
parentbce7a2a3a5dedcdbc04732a3a3be74c383f2a04a (diff)
downloadCMake-5c8c1d624d9b56e400637e996fd060add09180a3.zip
CMake-5c8c1d624d9b56e400637e996fd060add09180a3.tar.gz
CMake-5c8c1d624d9b56e400637e996fd060add09180a3.tar.bz2
XL: Use -qpic for position independent code (#14010)
According to XL C/C++ V9.0 documentation the default for -qpic/-qnopic is platform-dependent. It won't hurt to add the option on platforms where it is the default, so always add it when we want position independent code.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/XL.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake
index d293610..7bf5020 100644
--- a/Modules/Compiler/XL.cmake
+++ b/Modules/Compiler/XL.cmake
@@ -27,6 +27,7 @@ find_program(CMAKE_XL_CreateExportList
macro(__compiler_xl lang)
# Feature flags.
set(CMAKE_${lang}_VERBOSE_FLAG "-V")
+ set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-qpic")
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O")