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-5.0.0~294^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38a7c02f4ca2341f414c37499815b99ee3b46368;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 \