blob: b9fa2925bb692d7468b2ffc32e0027109652045e (
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
27
28
29
30
31
32
33
34
35
|
commit dcdb5df8bc0e973b856e88a7b78f88f947453feb
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date: Tue Jul 6 11:38:47 2010 +0300
Fixing link failure of compiler on ia64 ('-Wl,' prefixed value passed directly to ld)
/usr/bin/ld -Wl,--relax -r -o dist-stage1/build/HSghc-6.10.4.o \
dist-stage1/build/BasicTypes.o dist-stage1/build/DataCon.o ...
/usr/bin/ld: unrecognized option '-Wl,--relax'
If we just drop '-Wl,' part it will not help as '-r' and '--relax' are incompatible.
Looks like '-Wl,--relax' was skipped by earlier binutils' ld as unknown option.
Removing ia64 specific path.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
diff --git a/compiler/Makefile b/compiler/Makefile
index 0e7457b..17deab2 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -130,13 +130,6 @@ ifeq "$(TargetOS_CPP)" "openbsd"
COMMON_CONFIGURE_FLAGS += --ld-options=-E
endif
-ifeq "$(GhcUnregisterised)" "NO"
-ifeq "$(HOSTPLATFORM)" "ia64-unknown-linux"
-# needed for generating proper relocation in large binaries: trac #856
-COMMON_CONFIGURE_FLAGS += --ld-option=-Wl,--relax
-endif
-endif
-
# We need to turn on profiling either if we have been asked to
# (GhcLibProfiled = YES) or if we want GHC itself to be compiled with
# profiling enabled (GhcProfiled = YES).
|