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 2024-10-17 11:02:59 +01:00 committed by R. Timothy Edwards
parent ebf2db91b1
commit 80c043db79
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -9,4 +9,4 @@
# script itself. It also sets up CFLAGS without the default optimizer # script itself. It also sets up CFLAGS without the default optimizer
# flag (-O2). # flag (-O2).
( CFLAGS="-g"; export CFLAGS; cd scripts ; ./configure "$@" ) ( CFLAGS=${CFLAGS:-"-g"}; export CFLAGS; cd scripts ; ./configure "$@" )