summaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2016-06-06 12:02:50 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2016-06-07 18:19:06 +0300
commit6969ec6cfd1293efd16bf9c7c7063b44bc6880ce (patch)
treeb3215e74647b17ad5a8f68dc51aa3a7b02b31b49 /rules.mak
parenta2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a (diff)
downloadqemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.tar.gz
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.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mak b/rules.mak
index 4a8f464940..dca5718369 100644
--- a/rules.mak
+++ b/rules.mak
@@ -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)$@")