aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libb64/libb64/0005-make-overriding-CFLAGS-possible.patch
blob: e93015ee48eb053ac8b57e82f185c07f6e6d9f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From a7914d5ffee6ffdfb3f2b8ebcc22c8367d078301 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 27 Mar 2021 22:08:43 -0700
Subject: [PATCH] make overriding CFLAGS possible

Author: Jakub Wilk <jwilk@debian.org>

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 base64/Makefile | 2 +-
 src/Makefile    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/base64/Makefile b/base64/Makefile
index 30a2c5c..783a248 100644
--- a/base64/Makefile
+++ b/base64/Makefile
@@ -3,7 +3,7 @@ BINARIES = base64
 # Build flags (uncomment one)
 #############################
 # Release build flags
-CFLAGS += -O3
+CFLAGS ?= -O3
 #############################
 # Debug build flags
 #CFLAGS += -g
diff --git a/src/Makefile b/src/Makefile
index 28b2382..48801fc 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,7 @@ LIBRARIES = libb64.a
 # Build flags (uncomment one)
 #############################
 # Release build flags
-CFLAGS += -O3
+CFLAGS ?= -O3
 #############################
 # Debug build flags
 #CFLAGS += -g