summaryrefslogtreecommitdiff
path: root/community/spring/gold-linker.patch
blob: 8fa410717c2194a161cc560d0ad215be332a840e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 "")