File: 0010-GNUmakefile-do-not-override-CFLAGS.patch

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (24 lines) | stat: -rw-r--r-- 704 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
From: Agathe Porte <gagath@debian.org>
Date: Sat, 4 Oct 2025 15:17:10 +0200
Subject: GNUmakefile: do not override CFLAGS

Signed-off-by: Agathe Porte <gagath@debian.org>
---
 GNUmakefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index ab6dfb7..574ccae 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -41,8 +41,8 @@ OPT_PLUS=-O3 $(NATIVE)
 
 DEFINE=-D_REENTRANT
 
-CFLAGS=-pipe $(WARN) $(DEFINE) $(OPT_REG)
-CFLAGS_OPT=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
+CFLAGS?=-pipe $(WARN) $(DEFINE) $(OPT_REG)
+CFLAGS_OPT?=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
 
 #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall