From: Ian Lynagh Date: Sun, 16 Mar 2008 21:41:04 +0000 (+0000) Subject: If unregisterised, link with -optl-Wl,--relax on IA64 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=150682e5c8cab223196c13ea4f1ec46528230abc If unregisterised, link with -optl-Wl,--relax on IA64 This fixes part of trac #856 --- diff --git a/compiler/Makefile b/compiler/Makefile index 7cd21c6..adddc06 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -771,6 +771,13 @@ endif SRC_LD_OPTS += -no-link-chk +ifeq "$(GhcUnregisterised)" "NO" +ifeq "$(HOSTPLATFORM)" "ia64-unknown-linux" +# needed for generating proper relocation in large binaries: trac #856 +SRC_LD_OPTS += -optl-Wl,--relax +endif +endif + # ----------------------------------------------------------------------------- # create ghc-inplace, a convenient way to run ghc from the build tree... # See comments in $(FPTOOLS_TOP)/utils/ghc-pkg/Makefile for why we use