blob: e93015ee48eb053ac8b57e82f185c07f6e6d9f58 [file] [log] [blame]
Andrew Geissler32b11992021-03-31 13:37:05 -05001From a7914d5ffee6ffdfb3f2b8ebcc22c8367d078301 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Mar 2021 22:08:43 -0700
4Subject: [PATCH] make overriding CFLAGS possible
5
6Author: Jakub Wilk <jwilk@debian.org>
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 base64/Makefile | 2 +-
12 src/Makefile | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/base64/Makefile b/base64/Makefile
16index 30a2c5c..783a248 100644
17--- a/base64/Makefile
18+++ b/base64/Makefile
19@@ -3,7 +3,7 @@ BINARIES = base64
20 # Build flags (uncomment one)
21 #############################
22 # Release build flags
23-CFLAGS += -O3
24+CFLAGS ?= -O3
25 #############################
26 # Debug build flags
27 #CFLAGS += -g
28diff --git a/src/Makefile b/src/Makefile
29index 28b2382..48801fc 100644
30--- a/src/Makefile
31+++ b/src/Makefile
32@@ -3,7 +3,7 @@ LIBRARIES = libb64.a
33 # Build flags (uncomment one)
34 #############################
35 # Release build flags
36-CFLAGS += -O3
37+CFLAGS ?= -O3
38 #############################
39 # Debug build flags
40 #CFLAGS += -g