[x265] [PATCH 2 of 2] fix Issue #30, disable stack execute on gcc

Min Chen chenm003 at 163.com
Thu Feb 27 21:34:10 CET 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1393533205 28800
# Node ID 3e2a21b86a7c5b4d3bb5474972c749a1fb4e0643
# Parent  b2f97431268c16f8598253dd3e2b501b03d5f4c6
fix Issue #30, disable stack execute on gcc

diff -r b2f97431268c -r 3e2a21b86a7c source/CMakeLists.txt
--- a/source/CMakeLists.txt	Thu Feb 27 12:32:31 2014 -0800
+++ b/source/CMakeLists.txt	Thu Feb 27 12:33:25 2014 -0800
@@ -276,7 +276,7 @@
         set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265)
     endif()
     if(UNIX AND NOT APPLE)
-        set_target_properties(x265-shared PROPERTIES LINK_FLAGS "-Wl,-Bsymbolic")
+        set_target_properties(x265-shared PROPERTIES LINK_FLAGS "-Wl,-Bsymbolic,-znoexecstack")
     endif()
     if(X265_LATEST_TAG)
         # shared library is not installed if a tag is not found



More information about the x265-devel mailing list