summaryrefslogtreecommitdiff
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
commitf01a4570268bf0fe14d4c1a3ba2e1089f9e211ad (patch)
tree5e03709f3ea25da78c2aa049c4d686ec1444571b /Makefile.rules
parent46800779593bb3a9c01fbb7301c2b30dd20f25e5 (diff)
downloadllvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.tar.gz
llvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.tar.bz2
llvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.tar.xz
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 caa3335aa3..4a77bf536d 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)),)