File: build-options.diff

package info (click to toggle)
snowball 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,572 kB
  • sloc: ansic: 13,960; ada: 837; python: 560; cs: 469; pascal: 403; java: 383; javascript: 358; perl: 312; sh: 40; makefile: 15
file content (24 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 24 Jan 2021 19:07:24 -0700
Subject: Honor build flags passed as command line arguments

Forwarded: not-needed
---
 GNUmakefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 98eb1fa..d5e29cd 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -170,8 +170,8 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o)
 JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
 JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
 
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
-CPPFLAGS=
+override CFLAGS += -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
+CPPFLAGS?=
 
 INCLUDES=-Iinclude