1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Description: Adjust makefile to allow CFLAGS, CPPFLAGS and LDFLAGS to be extended.
This allow flags needed for reproducible and hardened build rules.
Author: Petter Reinholdtsen
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020806
Forwarded: no
Last-Update: 2024-04-24
---
Index: perl-byacc-salsa/Makefile
===================================================================
--- perl-byacc-salsa.orig/Makefile 2024-04-24 18:34:52.322240140 +0200
+++ perl-byacc-salsa/Makefile 2024-04-24 18:35:36.426463908 +0200
@@ -24,14 +24,14 @@
SIG_TYPE = void
#SIG_TYPE = char
-CPPFLAGS = $(RINDEX) -DPROGRAM=\"$(PROGRAM)\" -DSIG_TYPE=$(SIG_TYPE)
+CPPFLAGS += $(RINDEX) -DPROGRAM=\"$(PROGRAM)\" -DSIG_TYPE=$(SIG_TYPE)
-CFLAGS = -O2 -g $(CPPFLAGS)
+CFLAGS += -O2 -g $(CPPFLAGS)
CC = gcc -Wall
CPP = /lib/cpp
-LDFLAGS =
+LDFLAGS +=
LIBS =
|