fix debian/rules to honour CFLAGS
authorAlexander Clouter <alex@digriz.org.uk>
Sat, 10 Oct 2009 12:25:29 +0000 (13:25 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 13 Oct 2009 06:54:26 +0000 (08:54 +0200)
Fixed up debian/rules to allow CFLAGS to be honoured.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
debian/rules

index 9de0214..702bec5 100755 (executable)
@@ -27,7 +27,7 @@ modulelist=krb5 ldap sql_mysql sql_iodbc sql_postgresql
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-export CFLAGS = -Wall -g
+CFLAGS := $(CFLAGS) -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
@@ -35,6 +35,8 @@ else
        CFLAGS += -O2
 endif
 
+export CFLAGS
+
 # Autoconf 2.52+ arch support
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
        confflags += --build $(DEB_HOST_GNU_TYPE)