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 | 8b9524eede4a4e088c0c48701bec094a6b5a3697 (patch) | |
tree | c49b5b163be3d1aca2929eda0c131484dcbf90f2 | |
parent | b794c12c7e1391329125a53794677f7427fa39da (diff) | |
download | bcm5719-llvm-8b9524eede4a4e088c0c48701bec094a6b5a3697.tar.gz bcm5719-llvm-8b9524eede4a4e088c0c48701bec094a6b5a3697.zip |
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.
llvm-svn: 72943
-rw-r--r-- | llvm/Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index caa3335aa35..4a77bf536df 100644 --- a/llvm/Makefile.rules +++ b/llvm/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)),) |