File: add-cppflags-hardening.patch

package info (click to toggle)
bluemon 1.4-8
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 236 kB
  • sloc: ansic: 1,769; makefile: 205; sh: 104; xml: 24
file content (21 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Pass CPPFLAGS and LDFLAGS to the compiler to enable hardening
Author: Andreas Moog <andreas.moog@warperbbs.de>
Bug-Debian: https://bugs.debian.org/612181

--- bluemon-1.4.orig/Makefile
+++ bluemon-1.4/Makefile
@@ -20,11 +20,11 @@ print-release-name:
 	echo $(DEB_RELEASE)
 
 bluemon: bluetooth-monitor.c
-	$(CC) $(CFLAGS) $(INCLUDES) $(LIBS) -DVERSION=\"$(VERSION)\" -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DVERSION=\"$(VERSION)\" -o $@ $< $(LDFLAGS) $(LIBS)
 bluemon-query: bluemon-query.c
-	$(CC) $(CFLAGS) $(INCLUDES) $(LIBS) -DVERSION=\"$(VERSION)\" -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DVERSION=\"$(VERSION)\" -o $@ $< $(LDFLAGS) $(LIBS)
 bluemon-client: bluemon-client.c
-	$(CC) $(CFLAGS) $(INCLUDES) $(LIBS) -DVERSION=\"$(VERSION)\" -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DVERSION=\"$(VERSION)\" -o $@ $< $(LDFLAGS) $(LIBS)
 
 %.1: %.sgml
 	docbook-to-man $< > $@