From: user Date: Sun, 26 Dec 2021 09:26:37 +0000 (+0300) Subject: libssp is needed only for mingw X-Git-Tag: nvc-v0.5.9~28^2~1 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=020933e5f3d5670828b46e2b0023dfc74548ba1b libssp is needed only for mingw --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 41f91db..09aa47c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,10 +264,9 @@ list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO) add_executable(novacoin-qt WIN32 ${ALL_SOURCES}) if (NOT MSVC) -list(APPEND ALL_LIBRARIES ssp) list(APPEND ALL_DEFINITIONS _FORTIFY_SOURCE=2) if (WIN32) -list(APPEND ALL_LIBRARIES mingw32) +list(APPEND ALL_LIBRARIES mingw32 ssp) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static") endif() endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1940f5f..7c0ea67 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -175,10 +175,9 @@ list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO USE_IPV6) add_executable(novacoind ${ALL_SOURCES}) if (NOT MSVC) -list(APPEND ALL_LIBRARIES ssp) list(APPEND ALL_DEFINITIONS _FORTIFY_SOURCE=2) if (WIN32) -list(APPEND ALL_LIBRARIES mingw32) +list(APPEND ALL_LIBRARIES mingw32 ssp) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static") endif() endif()