mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
build: add -fstack-protector* to linker #11292
Needed by chromeOS. fixes #11228
This commit is contained in:
@ -303,8 +303,10 @@ if(UNIX)
|
||||
|
||||
if(HAS_FSTACK_PROTECTOR_STRONG_FLAG)
|
||||
add_compile_options(-fstack-protector-strong)
|
||||
link_libraries(-fstack-protector-strong)
|
||||
elseif(HAS_FSTACK_PROTECTOR_FLAG)
|
||||
add_compile_options(-fstack-protector --param ssp-buffer-size=4)
|
||||
link_libraries(-fstack-protector --param ssp-buffer-size=4)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user