build: add -fstack-protector* to linker #11292

Needed by chromeOS.
fixes #11228
This commit is contained in:
vincowl 2019-10-26 21:36:26 +02:00 committed by Justin M. Keyes
parent 19ba36d0e1
commit ec5776d92d

View File

@ -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()