Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | From a7914d5ffee6ffdfb3f2b8ebcc22c8367d078301 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 27 Mar 2021 22:08:43 -0700 |
| 4 | Subject: [PATCH] make overriding CFLAGS possible |
| 5 | |
| 6 | Author: Jakub Wilk <jwilk@debian.org> |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-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 | |
| 15 | diff --git a/base64/Makefile b/base64/Makefile |
| 16 | index 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 |
| 28 | diff --git a/src/Makefile b/src/Makefile |
| 29 | index 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 |