
Set target platform identification variables like `APPLE` and `LINUX` as soon as the target system is identified. This makes them available during toolchain and binutils selection. Fixes: #23333
11 lines
391 B
CMake
11 lines
391 B
CMake
set(CMAKE_DL_LIBS root be)
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
|
|
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-nostart")
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
|
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
|
|
|
include(Platform/UnixPaths)
|