1 $NetBSD: patch-CMakeLists.txt,v 1.1 2017/02/13 13:39:55 fhajny Exp $
3 Solaris ld: Provided assembler is not PIC, so we pass "-mimpure-text"
4 to the compiler so it doesn't send "-ztext" to ld.
6 Solaris ld: Passing "-Wa,--noexecstack" to gcc will generate an ELF section
7 requesting a non executable stack. I don't know if Solaris ld
8 is complying or just ignoring it.
10 --- a/source/CMakeLists.txt.OLD 2017-01-27 02:42:21.295232904 +0000
11 +++ a/source/CMakeLists.txt 2017-01-27 02:51:32.144600352 +0000
14 # Cygwin is not officially supported or tested. MinGW with msys is recommended.
16 - list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack")
17 + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
18 + list(APPEND LINKER_OPTIONS "-mimpure-text -Wa,--noexecstack")
20 + list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack")
24 set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD})