File: hardening.patch

package info (click to toggle)
w3cam 0.7.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: ansic: 3,822; makefile: 70
file content (37 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download
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
30
31
32
33
34
35
36
37
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-10-27
Description: Propagate hardening options

--- a/Makefile.in
+++ b/Makefile.in
@@ -6,8 +6,8 @@ cgibindir=$(prefix)/cgi-bin
 bindir=@bindir@
 
 VERSION=0.7.2
-CFLAGS = @CFLAGS@ @DEFS@ -DVIDEO_DEV=\"@ac_device@\" -DVERSION=\"$(VERSION)\"
-LDFLAGS = @LDFLAGS@
+CFLAGS += $(CPPFLAGS) @CFLAGS@ @DEFS@ -DVIDEO_DEV=\"@ac_device@\" -DVERSION=\"$(VERSION)\"
+LDFLAGS += @LDFLAGS@
 LIBS = @LIBS@
 
 OBJ = w3cam.o cgi.o v4l.o
--- a/w3camd/Makefile.in
+++ b/w3camd/Makefile.in
@@ -4,7 +4,7 @@
 prefix=@prefix@
 sbindir=@prefix@/sbin
 
-CFLAGS = @CFLAGS@ -I.. -I. -I@prefix@/include -g -DDEBUG -DCAM_PORT=8999 -D_REENTRANT
+CFLAGS += $(CPPFLAGS) @CFLAGS@ -I.. -I. -I@prefix@/include -g -DDEBUG -DCAM_PORT=8999 -D_REENTRANT
 CC = @CC@
 
 default: w3camd
@@ -15,7 +15,7 @@ OBJ = w3camd.o w3socket.o w3v4l.o w3http
 	$(CC) $(CFLAGS) -c $<
 
 w3camd: $(OBJ)
-	$(CC) -o $@ $(OBJ) -lpthread -ljpeg
+	$(CC) -o $@ $(OBJ) -lpthread -ljpeg $(LDFLAGS)
 
 install:
 	install w3camd $(sbindir)/