From 3d5cd06987ef6b2277ab81cdbce3111876de1f6b Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Mon, 28 Sep 2009 13:18:01 +0200 Subject: [PATCH] Allow for external CFLAGS to overwrite the CFLAGS in this script. --- regress/scripts/regress-config.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/regress/scripts/regress-config.in b/regress/scripts/regress-config.in index 57c219234e..4f0d46efc7 100755 --- a/regress/scripts/regress-config.in +++ b/regress/scripts/regress-config.in @@ -10,8 +10,12 @@ else PASSWD="--with-db-password=@db_password@" fi -CFLAGS="-g -O2 -Wall" \ - ./configure \ +if [ -z "${CFLAGS}" ]; then + CFLAGS="-g -O2 -Wall" + export CFLAGS +fi + +./configure \ --sbindir=${1}/bin \ --libdir=${1}/bin \ --sysconfdir=${1}/bin \ -- 2.39.5