File: add-cppflags.patch

package info (click to toggle)
vmtouch 1.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176 kB
  • sloc: ansic: 762; makefile: 25; perl: 16; sh: 1
file content (16 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Lucas Nussbaum <lucas@debian.org>
Subject: Add CPPFLAGS to the gcc cmdline, so hardening flags are passed correctly

Forwarded: not-needed

--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ all: vmtouch vmtouch.8
 .PHONY: all install clean uninstall
 
 vmtouch: vmtouch.c
-	${CC} ${CFLAGS} ${LDFLAGS} -o vmtouch vmtouch.c
+	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o vmtouch vmtouch.c
 
 vmtouch.8: vmtouch.pod
 	pod2man --section 8 --center "System Manager's Manual" --release " " vmtouch.pod > vmtouch.8