summaryrefslogtreecommitdiff
blob: b4f3c5707d43b5d1be59312b67bbfc39f406b953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Allow gcc to construct correct partial linking command to ld.
Otherwise ld gets an incompatible mix of '-pie -r'.

https://bugs.gentoo.org/617982
diff --git a/src/Makefile b/src/Makefile
index 79be4cc..d27bb91 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -33,3 +33,3 @@ win/$(PROGNAME).res: win/$(PROGNAME).rc
 $(PROGNAME).o: $(OBJECTS)
-	$(LD) -nostdlib -Wl,-r -o $@ $(OBJECTS)
+	$(LD) -nostdlib -r -o $@ $(OBJECTS)
 	@printf "%10s %-20s\n" LINK $@