]> git.proxmox.com Git - mirror_qemu.git/blobdiff - rules.mak
Fix linking relocatable objects on Sparc
[mirror_qemu.git] / rules.mak
index 4a8f464940bc3b2c611d4a70b760bc5ff06f5954..dca5718369a1d6c28e23ef755252fc5a79d67d3d 100644 (file)
--- 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)$@")