[x265] [PATCH 4 of 6] cmake: -fstack-protector requires libssp on MinGW

Steve Borho steve at borho.org
Fri Mar 6 18:07:21 CET 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1425660660 21600
#      Fri Mar 06 10:51:00 2015 -0600
# Node ID eea4096c1503850d057f8e4c64dfc1c2b5546574
# Parent  23a56c0d1ffa776b72b4b83ac369262bfb614d1e
cmake: -fstack-protector requires libssp on MinGW

diff -r 23a56c0d1ffa -r eea4096c1503 source/CMakeLists.txt
--- a/source/CMakeLists.txt	Fri Mar 06 10:49:44 2015 -0600
+++ b/source/CMakeLists.txt	Fri Mar 06 10:51:00 2015 -0600
@@ -196,6 +196,9 @@
         endif()
         if(CC_HAS_STACK_PROTECT)
             add_definitions(-fstack-protector)
+            if(MINGW)
+                list(APPEND PLATFORM_LIBS ssp)
+            endif()
         endif()
     endif(GCC)
 endif()


More information about the x265-devel mailing list