Skip to content

Commit

Permalink
Merge pull request #974 from slyshykO/fix_static
Browse files Browse the repository at this point in the history
Fix for static linking of libssp
  • Loading branch information
Nightwalker-87 committed Jun 3, 2020
2 parents 60f8461 + b1af21d commit b0dcb0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ include(CheckLibraryExists)

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

0 comments on commit b0dcb0c

Please sign in to comment.