From: Marco van Wieringen Date: Mon, 28 Sep 2009 11:18:01 +0000 (+0200) Subject: Allow for external CFLAGS to overwrite the CFLAGS in this script. X-Git-Tag: Release-7.0.0~2611^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d5cd06987ef6b2277ab81cdbce3111876de1f6b;p=bacula%2Fbacula Allow for external CFLAGS to overwrite the CFLAGS in this script. --- 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 \