xdg-user-dirs-gtk: update to 0.12
[oi-userland.git] / components / encumbered / x265-4.0 / patches / CMakeLists.patch
blob8566b0c77b4f6261f4f9c29582c8986d6edb4a6e
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
12 @@ -523,7 +523,11 @@
13 elseif(CYGWIN)
14 # Cygwin is not officially supported or tested. MinGW with msys is recommended.
15 else()
16 - list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack")
17 + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
18 + list(APPEND LINKER_OPTIONS "-mimpure-text -Wa,--noexecstack")
19 + else()
20 + list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack")
21 + endif()
22 endif()
23 endif()
24 set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD})