Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/spring/gold-linker.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-29 16:14:37 +0200
committerErich Eckner <git@eckner.net>2017-09-29 16:14:37 +0200
commitdad189a590e166257b3207a218afda2dedf4358d (patch)
tree96efa4b93dab930c442fe2402436f3f111bb3e90 /community/spring/gold-linker.patch
parent755b34b2cd795c06a90b35c2077b9c427d4ddf54 (diff)
community/spring: readded patching of non-gold-ld for spring
Diffstat (limited to 'community/spring/gold-linker.patch')
-rw-r--r--community/spring/gold-linker.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/spring/gold-linker.patch b/community/spring/gold-linker.patch
new file mode 100644
index 00000000..8fa41071
--- /dev/null
+++ b/community/spring/gold-linker.patch
@@ -0,0 +1,26 @@
+--- a/rts/build/cmake/TestCXXFlags.cmake 2017-09-29 15:10:51.499156806 +0200
++++ b/rts/build/cmake/TestCXXFlags.cmake 2017-09-29 15:10:34.213501442 +0200
+@@ -162,22 +162,10 @@
+ )
+ set(hasGold FALSE)
+ if ("${linkerVersion}" MATCHES "gold")
+- set(hasGold TRUE)
++ set(hasGold FALSE)
+ endif()
+
+
+- if (NOT hasGold AND NOT WIN32) #FIND_PROGRAM fails in crosscompile environments (it detects the native ld.gold)
+- # since gcc 4.8 it is possible to switch the linker via that argument
+- CHECK_CXX_ACCEPTS_FLAG("-fuse-ld=gold" HAS_USE_LD)
+- IF (HAS_USE_LD)
+- FIND_PROGRAM(LD_GOLD ld.gold)
+- if (LD_GOLD)
+- set(hasGold TRUE)
+- set(LDGOLD_CXX_FLAGS "-fuse-ld=gold")
+- endif ()
+- EndIf ()
+- endif ()
+-
+ if (hasGold)
+ set(LDGOLD_FOUND TRUE)
+ set(LDGOLD_LINKER_FLAGS "")