File: hardening.patch

package info (click to toggle)
lgrind 3.67-9
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: ansic: 2,261; makefile: 96; asm: 75; sh: 28
file content (16 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: add missing hardening flags
Author: Andreas Beckmann <anbe@debian.org>

--- a/source/Makefile
+++ b/source/Makefile
@@ -10,7 +10,9 @@ MANPAGES1=lgrind.1
 MANPAGES5=lgrindef.5
 OBJS=lgrind.o regexp.o retest.o lgrindef.o v2lg.o
 
-CFLAGS=-O2
+CFLAGS	+= -O2
+CFLAGS	+= $(CPPFLAGS)
+CFLAGS	+= $(LDFLAGS)
 # CFLAGS=-Dpopen=fopen -Dpclose=fclose
 # There are operating systems and compilers without these...