mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client/host] disable stack execution
This commit is contained in:
parent
523accf348
commit
0bd5f0b2f1
@ -37,7 +37,7 @@ add_compile_options(
|
|||||||
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb>"
|
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb>"
|
||||||
)
|
)
|
||||||
|
|
||||||
set(EXE_FLAGS "-Wl,--gc-sections")
|
set(EXE_FLAGS "-Wl,--gc-sections -z noexecstack")
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
@ -66,7 +66,13 @@ target_link_libraries(looking-glass-host
|
|||||||
platform
|
platform
|
||||||
lgmp
|
lgmp
|
||||||
)
|
)
|
||||||
set_target_properties(looking-glass-host PROPERTIES LINK_FLAGS "-Wl,--gc-sections")
|
|
||||||
|
if(WIN32)
|
||||||
|
set_target_properties(looking-glass-host PROPERTIES LINK_FLAGS "-Wl,--gc-sections -Wl,--nxcompat")
|
||||||
|
else()
|
||||||
|
set_target_properties(looking-glass-host PROPERTIES LINK_FLAGS "-Wl,--gc-sections -z noexecstack")
|
||||||
|
endif()
|
||||||
|
|
||||||
install(PROGRAMS ${CMAKE_BINARY_DIR}/looking-glass-host DESTINATION bin/ COMPONENT binary)
|
install(PROGRAMS ${CMAKE_BINARY_DIR}/looking-glass-host DESTINATION bin/ COMPONENT binary)
|
||||||
|
|
||||||
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
|
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
|
||||||
|
Loading…
Reference in New Issue
Block a user