summaryrefslogtreecommitdiffstats
path: root/patches/qemu-xmount/01-fix_ld_pie_relocateable.patch
blob: c85a8f553cf9b6abbb16eee37404ae19973b8ed4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/rules.mak b/rules.mak
index 4551b9ea70..019d6c7691 100644
--- a/rules.mak
+++ b/rules.mak
@@ -111,7 +111,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 -r
 
 %.mo:
 	$(call quiet-command,$(LD_REL) -o $@ $^,"  LD -r $(TARGET_DIR)$@")