diff options
author | Duncan Sands <baldrick@free.fr> | 2009-06-05 15:05:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-06-05 15:05:19 +0000 |
commit | f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad (patch) | |
tree | 5e03709f3ea25da78c2aa049c4d686ec1444571b /Makefile.rules | |
parent | 46800779593bb3a9c01fbb7301c2b30dd20f25e5 (diff) | |
download | external_llvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.zip external_llvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.tar.gz external_llvm-f01a4570268bf0fe14d4c1a3ba2e1089f9e211ad.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.rules | 2 |
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)),) |