From 4ddf9717cddbaacd2d05e2c3599a30344935cd21 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Mon, 31 Dec 2018 06:41:09 -0500
Subject: build system: configure: properly record the inherited CFLAGS and
 LDFLAGS.

---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'configure')

diff --git a/configure b/configure
index e5fb030..914668e 100755
--- a/configure
+++ b/configure
@@ -362,6 +362,10 @@ common_defaults()
 			mb_cflags_debug='-g3 -O0'
 		fi
 	fi
+
+	# inherited cflags & ldflags
+	mb_cflags_cmdline="$mb_cflags_cmdline $mb_cflags"
+	mb_ldflags_cmdline="$mb_ldflags_cmdline $mb_ldflags"
 }
 
 
-- 
cgit v1.2.3