Debian Codegraph @

debian/patches/1010-hardening.patch

raw symbols SCIP
1 Description: Make sure CPPFLAGS are used for hardening.
2 The build should use the CPPFLAGS content to ensure hardening
3 build flags are included in the compiler command line.
4 Author: Petter Reinholdtsen <[email protected]>
5 Forwarded: no
6 Last-Update: 2024-12-05
7 ---
8 --- blobandconquer-1.11-dfsg+20.orig/makefile
9 +++ blobandconquer-1.11-dfsg+20/makefile
10 @@ -18,6 +18,7 @@ ICONDIR ?= $(PREFIX)/share/icons/
11 MENUDIR ?= $(PREFIX)/share/applications/
12 LOCALEDIR ?= $(PREFIX)/share/locale/
13
14 +CPPFLAGS +=
15 CXXFLAGS += -Wformat=2 -Wformat-security -Wstrict-aliasing=2
16 CXXFLAGS += -Wmissing-format-attribute -Wmissing-noreturn
17 CXXFLAGS += -Wdisabled-optimization
18 @@ -97,7 +98,7 @@ endif
19 all: $(ALL)
20
21 %.o: %.cpp %.h data/gameDefs/defines.h defs.h headers.h
22 - $(CXX) $(CXXFLAGS) -c $<
23 + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
24
25 # linking the program.
26 $(PROG): $(GAMEOBJS)