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
This commit is contained in:
parent
b794c12c7e
commit
8b9524eede
|
@ -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)),)
|
||||
|
|
Loading…
Reference in New Issue