libssp is needed only for mingw
[novacoin.git] / 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()