From: Sergei Trofimovich Date: Thu, 8 Jul 2010 18:09:43 +0000 (+0000) Subject: Fixing link failure of compiler on ia64 ('-Wl,' prefixed value passed directly to ld) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=615d88d1912a81ca3bef44010285424f6c454449 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. --- diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 2daf683..3c8c95f 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -336,10 +336,6 @@ compiler_CONFIGURE_OPTS += --ld-options=-E 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