Patch for better support of hardening
[rrq/maintain_lilo.git] / debian / patches / 07_hardening-cflags+cppflags.patch
1 Package:     lilo
2 Subject:     hardening CFLAGS and CPPFLAGS
3 Author:      Joachim Wiedorn <joodebian at joonet.de>
4 Origin:      issues found in buildd logs for lilo
5 Forwarded:   no
6 Last-Update: 2016-07-15
7 ---
8
9 diff -urN s06/src/Makefile s07/src/Makefile
10 --- s06/src/Makefile    2016-07-15 21:41:14.977602579 +0200
11 +++ s07/src/Makefile    2016-07-15 21:52:35.979409943 +0200
12 @@ -22,7 +22,8 @@
13  NASM=nasm
14  G=`cat foo1 foo2 | grep version | cut -d " " -f 3`
15  
16 -CFLAGS=$(OPT) -Wall $(PCONFIG)
17 +CFLAGS = $(OPT) -Wall $(PCONFIG) `dpkg-buildflags --get CFLAGS`
18 +CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
19  LIBS=$(DEVMAPPER)
20  
21  OBJS=lilo.o raid.o map.o geometry.o boot.o device.o common.o bsect.o cfg.o \