blob: aac5e7d9910abe3d86782fb15bd7bddadcf08279 (
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-24 20:01:29.000000000 +0200
+++ b/rts/build/cmake/TestCXXFlags.cmake 2018-01-09 14:16:55.894197136 +0100
@@ -161,23 +161,8 @@
ERROR_VARIABLE linkerVersion
)
set(hasGold FALSE)
- if ("${linkerVersion}" MATCHES "gold")
- set(hasGold TRUE)
- 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 "")
|