mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:42:58 +00:00
[CMAKE] Fix GCC -fstack-protector usage
This commit is contained in:
parent
a853102a7b
commit
c8d07514c8
15 changed files with 121 additions and 35 deletions
|
@ -35,7 +35,7 @@ if(USE_DUMMY_PSEH)
|
|||
endif()
|
||||
|
||||
if(STACK_PROTECTOR)
|
||||
add_compile_options(-fstack-protector-all)
|
||||
add_compile_options(-fstack-protector-strong)
|
||||
endif()
|
||||
|
||||
# Compiler Core
|
||||
|
@ -287,10 +287,6 @@ function(set_module_type_toolchain MODULE TYPE)
|
|||
#Disabled due to LD bug: ROSBE-154
|
||||
#add_linker_script(${MODULE} ${REACTOS_SOURCE_DIR}/sdk/cmake/init-section.lds)
|
||||
endif()
|
||||
|
||||
if(STACK_PROTECTOR)
|
||||
target_link_libraries(${MODULE} gcc_ssp)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(add_delay_importlibs _module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue