Fixing link failure of compiler on ia64 ('-Wl,' prefixed value passed directly to ld)
authorSergei Trofimovich <slyfox@community.haskell.org>
Thu, 8 Jul 2010 18:09:43 +0000 (18:09 +0000)
committerSergei Trofimovich <slyfox@community.haskell.org>
Thu, 8 Jul 2010 18:09:43 +0000 (18:09 +0000)
    /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.

compiler/ghc.mk

index 2daf683..3c8c95f 100644 (file)
@@ -336,10 +336,6 @@ compiler_CONFIGURE_OPTS += --ld-options=-E
 endif
 
 ifeq "$(GhcUnregisterised)" "NO"
 endif
 
 ifeq "$(GhcUnregisterised)" "NO"
-ifeq "$(HOSTPLATFORM)" "ia64-unknown-linux"
-# needed for generating proper relocation in large binaries: trac #856
-compiler_CONFIGURE_OPTS += --ld-option=-Wl,--relax
-endif
 else
 compiler_CONFIGURE_OPTS += --ghc-option=-DNO_REGS
 endif
 else
 compiler_CONFIGURE_OPTS += --ghc-option=-DNO_REGS
 endif