Files
guru/dev-R/ps/files/ps-respect-LDFLAGS.patch
Alessandro Barbieri 81a93e00b6 dev-R/ps: respect LDFLAGS
Closes: https://bugs.gentoo.org/794112
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-09-05 05:56:14 +02:00

16 lines
403 B
Diff

--- a/src/Makevars.in
+++ b/src/Makevars.in
@@ -8,10 +8,10 @@
all: px @TARGETS@ $(SHLIB)
px: px.c
- $(CC) $(CFLAGS) -Wall px.c -o px
+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIE -Wall px.c -o px
interrupt: interrupt.c
- $(CC) $(CFLAGS) -Wall interrupt.c -o interrupt
+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIE -Wall interrupt.c -o interrupt
clean:
rm -rf $(SHLIB) $(OBJECTS) px.exe px interrupt.exe interrupt