Skip to content

Commit

Permalink
Merge pull request #961 from slyshykO/develop
Browse files Browse the repository at this point in the history
Set static link for libssp (stack-smashing protection)
  • Loading branch information
Nightwalker-87 authored May 19, 2020
2 parents da68271 + 73dc5fe commit 90d65be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ include(CheckLibraryExists)

CHECK_LIBRARY_EXISTS(ssp __stack_chk_fail "" _stack_chk_fail_exists)
if (_stack_chk_fail_exists)
set(SSP_LIB ssp)
set(SSP_LIB -static ssp)
else ()
set(SSP_LIB "")
endif ()
Expand Down

0 comments on commit 90d65be

Please sign in to comment.