File: buildflags.patch

package info (click to toggle)
liquidwar 5.6.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,328 kB
  • sloc: ansic: 26,238; xml: 4,011; sh: 3,825; asm: 1,344; makefile: 1,343; python: 537; php: 487; perl: 29; sql: 22; javascript: 11
file content (16 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Honour CPPFLAGS during compilation
 Preprocessor flags are passed in CPPFLAGS by the build system, which
 for example includes hardening-related flags.

--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -245,7 +245,7 @@
 	-DCONFIG_UNIX_SRV=\"$(GAMEDIR)/liquidwar-server\" \
 	-DCONFIG_UNIX_GEN=\"$(GAMEDIR)/liquidwar-mapgen\"
 
-CMD_CC = $(CC) $(CFLAGS) $(ALCFLAGS) -c $(DEBUG_FLAGS) -Wall -W $(HOST_CPU_CC) $(CONFIG_OPTIONS) $(DEBUG_OPTIONS) $(SPRINTF_OPTIONS) $(ASM_OPTIONS) $(GP2X_OPTIONS) -DUNIX -D_THREAD_SAFE
+CMD_CC = $(CC) $(CPPFLAGS) $(CFLAGS) $(ALCFLAGS) -c $(DEBUG_FLAGS) -Wall -W $(HOST_CPU_CC) $(CONFIG_OPTIONS) $(DEBUG_OPTIONS) $(SPRINTF_OPTIONS) $(ASM_OPTIONS) $(GP2X_OPTIONS) -DUNIX -D_THREAD_SAFE
 CMD_AS = $(AS) $(ASFLAGS) --32
 
 all: $(EXE_FILES)