From 80c043db79f7fdb0bb91228aca90449c18f4cd2c Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Thu, 17 Oct 2024 11:02:59 +0100 Subject: [PATCH] configure: wrapper CFLAGS inherit if already set It is usual for the user to have control of CFLAGS like: CFLAGS="-O2" ./configure --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ae0a0fc1..367e09a7 100755 --- a/configure +++ b/configure @@ -9,4 +9,4 @@ # script itself. It also sets up CFLAGS without the default optimizer # flag (-O2). -( CFLAGS="-g"; export CFLAGS; cd scripts ; ./configure "$@" ) +( CFLAGS=${CFLAGS:-"-g"}; export CFLAGS; cd scripts ; ./configure "$@" )