]> git.sur5r.net Git - bacula/bacula/commitdiff
Allow for external CFLAGS to overwrite the CFLAGS in this script.
authorMarco van Wieringen <mvw@planets.elm.net>
Mon, 28 Sep 2009 11:18:01 +0000 (13:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Wed, 30 Sep 2009 10:18:54 +0000 (12:18 +0200)
regress/scripts/regress-config.in

index 57c219234ee0dabc76e1d99ed6a4b0ae868075bd..4f0d46efc78e646604aa2c5b1170388bbbeb93bb 100755 (executable)
@@ -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 \