File: 02-reproducible.patch

package info (click to toggle)
perl-byacc 2.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 720 kB
  • sloc: ansic: 7,136; yacc: 2,035; perl: 1,779; makefile: 160; sh: 9
file content (29 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (2)
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	      =