aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-06-05 15:05:19 +0000
committerDuncan Sands <baldrick@free.fr>2009-06-05 15:05:19 +0000
commitcfd79416b6b7f78ce80103b3c8e6fb60a31a33ec (patch)
tree5e03709f3ea25da78c2aa049c4d686ec1444571b /Makefile.rules
parent71df88f8ca45f7927a468e4edec96f8e28cb3303 (diff)
downloadexternal_llvm-cfd79416b6b7f78ce80103b3c8e6fb60a31a33ec.zip
external_llvm-cfd79416b6b7f78ce80103b3c8e6fb60a31a33ec.tar.gz
external_llvm-cfd79416b6b7f78ce80103b3c8e6fb60a31a33ec.tar.bz2
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index caa3335..4a77bf5 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)),)