From f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 5 Jun 2009 15:05:19 +0000 Subject: [PATCH] On platforms like Sparc64 you need to pass -r to gcc rather than directly to the linker: gcc will then modify the linker options it generates (it will not use --relax for example, incompatible with -r, as it otherwise would). This fixes the sparc build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72943 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index caa3335aa35..4a77bf536df 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1066,7 +1066,7 @@ all-local:: $(LibName.O) $(LibName.O): $(ObjectsO) $(LibDir)/.dir $(Echo) Linking $(BuildMode) Object Library $(notdir $@) - $(Verb) $(Relink) -Wl,-r -nodefaultlibs -nostdlib -nostartfiles -o $@ $(ObjectsO) + $(Verb) $(Relink) -r -nodefaultlibs -nostdlib -nostartfiles -o $@ $(ObjectsO) clean-local:: ifneq ($(strip $(LibName.O)),)