diff options
author | James Clarke <jrtc27@jrtc27.com> | 2016-06-06 12:02:50 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-06-07 18:19:06 +0300 |
commit | 6969ec6cfd1293efd16bf9c7c7063b44bc6880ce (patch) | |
tree | b3215e74647b17ad5a8f68dc51aa3a7b02b31b49 /rules.mak | |
parent | a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a (diff) | |
download | qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.tar.gz qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.tar.bz2 qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.zip |
Fix linking relocatable objects on Sparc
On Sparc, gcc implicitly passes --relax to the linker, but -r is
incompatible with this. Therefore, if --no-relax is supported, it should
be passed to the linker.
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'rules.mak')
-rw-r--r-- | rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ module-common.o: CFLAGS += $(DSO_OBJ_CFLAGS) $(if $(findstring /,$@),$(call quiet-command,cp $@ $(subst /,-,$@), " CP $(subst /,-,$@)")) -LD_REL := $(CC) -nostdlib -Wl,-r +LD_REL := $(CC) -nostdlib -Wl,-r $(LD_REL_FLAGS) %.mo: $(call quiet-command,$(LD_REL) -o $@ $^," LD -r $(TARGET_DIR)$@") |