On platforms like Sparc64 you need to pass -r to
authorDuncan Sands <baldrick@free.fr>
Fri, 5 Jun 2009 15:05:19 +0000 (15:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 5 Jun 2009 15:05:19 +0000 (15:05 +0000)
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

index caa3335aa35982432bb1dee961b9b7785727d2fa..4a77bf536dffcdcbd98a53bd7947683b4542141d 100644 (file)
@@ -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)),)