summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-06 12:23:37 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-06 12:24:04 (GMT)
commit7f981dcf0e6d0a1c01c49c0245218949fcfa75b6 (patch)
tree042af5da63a3398e440b540e83946c594ab19241 /Modules
parentbe095b3e7fcaf3773a994f546adafb383324e78b (diff)
parentc2856e0b2b58c0c9cb4c089570009d517720812c (diff)
downloadCMake-7f981dcf0e6d0a1c01c49c0245218949fcfa75b6.zip
CMake-7f981dcf0e6d0a1c01c49c0245218949fcfa75b6.tar.gz
CMake-7f981dcf0e6d0a1c01c49c0245218949fcfa75b6.tar.bz2
Merge topic 'xl-exe-pic'
c2856e0b2b XL: Use -qpic for position independent executables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2249
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 a1d7ca1..21fe5e8 100644
--- a/Modules/Compiler/XL.cmake
+++ b/Modules/Compiler/XL.cmake
@@ -20,6 +20,7 @@ macro(__compiler_xl lang)
# Feature flags.
set(CMAKE_${lang}_VERBOSE_FLAG "-V")
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-qpic")
+ set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-qpic")
set(CMAKE_${lang}_RESPONSE_FILE_FLAG "-qoptfile=")
set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-qoptfile=")