File: 2002_hardening_portability_fix.patch

package info (click to toggle)
surf 2.1%2Bgit20221016-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 316 kB
  • sloc: ansic: 2,401; makefile: 124; sh: 75; python: 58
file content (22 lines) | stat: -rw-r--r-- 678 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
22
Description: Fixes to introduce build hardening
 This patch modifies the upstream source to introduce build
 hardening.
Author: Vasudev Kamath <kamathvasudev@gmail.com>
Forwarded: not-needed

--- a/config.mk
+++ b/config.mk
@@ -22,11 +22,11 @@
 LIBS = $(X11LIB) $(GTKLIB) -lgthread-2.0
 
 # flags
-CPPFLAGS = -DVERSION=\"$(VERSION)\" -DGCR_API_SUBJECT_TO_CHANGE \
+CPPFLAGS += -DVERSION=\"$(VERSION)\" -DGCR_API_SUBJECT_TO_CHANGE \
            -DLIBPREFIX=\"$(LIBPREFIX)\" -DWEBEXTDIR=\"$(LIBDIR)\" \
            -D_DEFAULT_SOURCE
 SURFCFLAGS = -fPIC $(INCS) $(CPPFLAGS)
-WEBEXTCFLAGS = -fPIC $(WEBEXTINC)
+WEBEXTCFLAGS = -fPIC $(WEBEXTINC) $(CPPFLAGS)
 
 # compiler
 #CC = c99