Pass -fstack-protector-strong to linker

Fixes some older compiler / platform combinations (e.g. GCC7 on PPC Mac)
This commit is contained in:
Evan Miller
2021-09-19 13:01:55 -04:00
committed by GitHub
parent d92b0a6717
commit 7700f90786
+1
View File
@@ -48,6 +48,7 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
endif()
if(BUILD_WITH_STACK_PROTECTOR AND HAS_FSTACK_PROTECTOR_STRONG)
add_compile_options(-fstack-protector-strong)
add_link_options(-fstack-protector-strong)
endif()
endif()