[PATCH] fix debian/rules to honour CFLAGS

Alexander Clouter alex at digriz.org.uk
Sat Oct 10 14:25:29 CEST 2009


Fixed up debian/rules to allow CFLAGS to be honoured.

Signed-off-by: Alexander Clouter <alex at digriz.org.uk>
---
 debian/rules |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/debian/rules b/debian/rules
index 9de0214..702bec5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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)
-- 
1.5.6.5




More information about the Freeradius-Devel mailing list