byaccj/honor-ldflags.patch
Timm Bäder c3edda7f2d build: Actually use $LDFLAGS when linking
Otherwise annocheck complains that the binary has been linked without
-pie.
2020-11-23 15:33:14 +01:00

13 lines
350 B
Diff

diff -ruN byaccj1.15.orig/src/Makefile byaccj1.15/src/Makefile
--- byaccj1.15.orig/src/Makefile 2020-11-23 15:20:38.376711773 +0100
+++ byaccj1.15/src/Makefile 2020-11-23 15:20:58.680671903 +0100
@@ -75,7 +75,7 @@
$(CC) -c $(CFLAGS) $(INC) $< -o $@
yacc: $(OBJ)
- $(CC) -o yacc $(OBJ)
+ $(CC) -o yacc $(LDFLAGS) $(OBJ)
@echo "done"
clean: