Skip to content

Commit

Permalink
Merge pull request #1915 from evanmiller/patch-1
Browse files Browse the repository at this point in the history
Pass `-fstack-protector-strong` to linker
  • Loading branch information
kevinbackhouse authored Sep 20, 2021
2 parents 801e201 + 7700f90 commit 66b40d8
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 66b40d8

Please sign in to comment.