configure: wrapper CFLAGS inherit if already set

It is usual for the user to have control of CFLAGS like:
  CFLAGS="-O2" ./configure
This commit is contained in:
Darryl L. Miles
2025-07-29 10:50:31 -04:00
committed by R. Timothy Edwards
parent ebf2db91b1
commit 80c043db79
Vendored
+1 -1
View File
@@ -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 "$@" )