From 7700f90786cc75da2db3b318161b39e99b09229c Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Sun, 19 Sep 2021 13:01:55 -0400 Subject: [PATCH] Pass -fstack-protector-strong to linker Fixes some older compiler / platform combinations (e.g. GCC7 on PPC Mac) --- cmake/compilerFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/compilerFlags.cmake b/cmake/compilerFlags.cmake index 014822e4..6391cfe1 100644 --- a/cmake/compilerFlags.cmake +++ b/cmake/compilerFlags.cmake @@ -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()