libssp is needed only for mingw
authoruser <balthazar@yandex.ru>
Sun, 26 Dec 2021 09:26:37 +0000 (12:26 +0300)
committeruser <balthazar@yandex.ru>
Sun, 26 Dec 2021 09:26:37 +0000 (12:26 +0300)
CMakeLists.txt
src/CMakeLists.txt

index 41f91db..09aa47c 100644 (file)
@@ -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()
index 1940f5f..7c0ea67 100644 (file)
@@ -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()