mirror of https://github.com/xiph/flac
[CMake] Build with -lssp on MinGW
This commit is contained in:
parent
617efda90d
commit
805b7dba83
|
@ -53,6 +53,7 @@ include(CheckFunctionExists)
|
|||
include(CheckIncludeFile)
|
||||
include(CheckCSourceCompiles)
|
||||
include(CheckCXXSourceCompiles)
|
||||
include(CheckLibraryExists)
|
||||
include(GNUInstallDirs)
|
||||
include(UseSystemExtensions)
|
||||
include(TestBigEndian)
|
||||
|
@ -83,6 +84,8 @@ if(MINGW AND (WITH_FORTIFY_SOURCE OR WITH_STACK_PROTECTOR))
|
|||
check_library_exists(ssp __stack_chk_fail "" HAVE_LIBSSP)
|
||||
if(NOT HAVE_LIBSSP)
|
||||
message(WARNING "Could not find libssp in MinGW, stack protection and/or FORTIFY_SOURCE are unavailable")
|
||||
else()
|
||||
link_libraries(ssp)
|
||||
endif()
|
||||
elseif(NOT MSVC)
|
||||
set(HAVE_LIBSSP 1)
|
||||
|
|
Loading…
Reference in New Issue