[llvm-commits] [llvm] r72943 - /llvm/trunk/Makefile.rules

Duncan Sands baldrick at free.fr
Fri Jun 5 08:05:20 PDT 2009


Author: baldrick
Date: Fri Jun  5 10:05:19 2009
New Revision: 72943

URL: http://llvm.org/viewvc/llvm-project?rev=72943&view=rev
Log:
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.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=72943&r1=72942&r2=72943&view=diff

==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Fri Jun  5 10:05:19 2009
@@ -1066,7 +1066,7 @@
 
 $(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)),)





More information about the llvm-commits mailing list