Skip to content

Commit

Permalink
Pass -fstack-protector-strong to linker
Browse files Browse the repository at this point in the history
Fixes some older compiler / platform combinations (e.g. GCC7 on PPC Mac)
  • Loading branch information
evanmiller authored Sep 19, 2021
1 parent d92b0a6 commit 7700f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/compilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 7700f90

Please sign in to comment.