aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2017-01-29 04:37:55 +0800
committerbrooks <brooks@FreeBSD.org>2017-01-29 04:37:55 +0800
commit5994e480654ae04cf11a08c0f5f2c1c3a1e39881 (patch)
tree76ee0e48aa123cd089dfe0d7f30366ab322bfe3d /devel
parent6e7f21d4c67e61532e16ed9d7cf1c538d38d219a (diff)
downloadfreebsd-ports-gnome-5994e480654ae04cf11a08c0f5f2c1c3a1e39881.tar.gz
freebsd-ports-gnome-5994e480654ae04cf11a08c0f5f2c1c3a1e39881.tar.zst
freebsd-ports-gnome-5994e480654ae04cf11a08c0f5f2c1c3a1e39881.zip
Correct a broken patch.
Diffstat (limited to 'devel')
-rw-r--r--devel/llvm40/files/patch-tools_llvm-shlib_CMakeLists.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/devel/llvm40/files/patch-tools_llvm-shlib_CMakeLists.txt b/devel/llvm40/files/patch-tools_llvm-shlib_CMakeLists.txt
index 6695770c2c79..f40994bf73de 100644
--- a/devel/llvm40/files/patch-tools_llvm-shlib_CMakeLists.txt
+++ b/devel/llvm40/files/patch-tools_llvm-shlib_CMakeLists.txt
@@ -1,13 +1,14 @@
-Otherwise we end up with a 4k library without any symbols.
---- tools/llvm-shlib/CMakeLists.txt.orig 2016-05-26 06:35:35.000000000 +0200
-+++ tools/llvm-shlib/CMakeLists.txt 2016-11-15 17:07:29.937965000 +0100
-@@ -39,7 +39,7 @@
+$FreeBSD$
+
+--- tools/llvm-shlib/CMakeLists.txt.orig
++++ tools/llvm-shlib/CMakeLists.txt
+@@ -37,7 +37,7 @@
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
--if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") # FIXME: It should be "GNU ld for elf"
-+if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")) # FIXME: It should be "GNU ld for elf"
+-if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR MINGW) # FIXME: It should be "GNU ld for elf"
++if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly") OR MINGW) # FIXME: It should be "GNU ld for elf"
# GNU ld doesn't resolve symbols in the version script.
set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")