diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-11-12 20:42:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-12 20:43:07 (GMT) |
commit | ddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b (patch) | |
tree | a94fe4644c936080d409225dd8cbd3bc56925f03 /Modules/Platform/NetBSD.cmake | |
parent | c310480c5dc76ad0c1eb4e842869f92121d5b507 (diff) | |
parent | c4b4d8b3a67718e29edb5676273e528dab566672 (diff) | |
download | CMake-ddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b.zip CMake-ddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b.tar.gz CMake-ddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b.tar.bz2 |
Merge topic 'pie-link-options'
c4b4d8b3a6 POSITION_INDEPENDENT_CODE: Manage link flags for executables
724a0346f7 POSITION_INDEPENDENT_CODE: Fix erroneous '-fPIE' flag for Sun Studio
023188ffb4 INTERFACE_POSITION_INDEPENDENT_CODE: add generator expressions support
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2465
Diffstat (limited to 'Modules/Platform/NetBSD.cmake')
-rw-r--r-- | Modules/Platform/NetBSD.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/NetBSD.cmake b/Modules/Platform/NetBSD.cmake index a8f4cc8..d99cb4a 100644 --- a/Modules/Platform/NetBSD.cmake +++ b/Modules/Platform/NetBSD.cmake @@ -1,6 +1,7 @@ set(CMAKE_DL_LIBS "") set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC") set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE") +# PIE link options are managed in Compiler/<compiler>.cmake file set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib |