Use CFLAGS instead of CPPFLAGS and append to existing values
authorEmmanuel Lacour <elacour@home-dn.net>
Wed, 18 Apr 2012 12:41:00 +0000 (14:41 +0200)
committerEmmanuel Lacour <elacour@home-dn.net>
Wed, 18 Apr 2012 12:41:00 +0000 (14:41 +0200)
debian/rules

index c2a12b9..96b58c3 100755 (executable)
@@ -13,7 +13,7 @@
        dh $@  --with quilt,autotools-dev,autoreconf
 
 override_dh_auto_configure:
        dh $@  --with quilt,autotools-dev,autoreconf
 
 override_dh_auto_configure:
-       CPPFLAGS="`pkg-config --cflags apr-1`" ./configure --prefix=/usr \
+       CFLAGS="$(CFLAGS) `pkg-config --cflags apr-1`" ./configure --prefix=/usr \
        --sysconfdir=/etc/suphp \
        --with-apxs=/usr/bin/apxs2 \
        --with-apache-user=www-data \
        --sysconfdir=/etc/suphp \
        --with-apxs=/usr/bin/apxs2 \
        --with-apache-user=www-data \