mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
POSITION_INDEPENDENT_CODE: Manage link flags for executables
Fixes: #14983, #16561
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
set(CMAKE_C_COMPILE_OPTIONS_PIC -K PIC)
|
||||
set(CMAKE_C_COMPILE_OPTIONS_PIE "")
|
||||
set(CMAKE_C_LINK_OPTIONS_PIE "")
|
||||
set(CMAKE_C_LINK_OPTIONS_NO_PIE "")
|
||||
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-K PIC")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-Wl,-Bexport")
|
||||
include(Platform/UnixPaths)
|
||||
|
||||
Reference in New Issue
Block a user