summaryrefslogtreecommitdiff
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-12 08:52:41 -0400
committerBrad King <brad.king@kitware.com>2019-07-15 07:45:04 -0400
commit9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a (patch)
tree8539ed33c054a729db39a31598b16b376f09970b /Modules/Compiler
parentd7e53b427428bc23778d1b094e8893df4573e22e (diff)
downloadcmake-9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a.tar.gz
XL: De-duplicate shared object creation flags
The XL `-qmkshrobj` flag creates shared objects on all platforms. Move the flag out of the per-platform modules into the per-compiler module for XL.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/XL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake
index a9cec113fc..fc71ab4895 100644
--- a/Modules/Compiler/XL.cmake
+++ b/Modules/Compiler/XL.cmake
@@ -18,6 +18,8 @@ macro(__compiler_xl lang)
set(CMAKE_${lang}_RESPONSE_FILE_FLAG "-qoptfile=")
set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-qoptfile=")
+ set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-qmkshrobj")
+
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,")
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")