On 07/09/14 14:24 +0530, Y Giridhar Appaji Nag said ... > Part of my patch is incorrect. > > The --debug=1 also enabled additional debugging output which is not the > intent of "debug" in DEB_BUILD_OPTIONS. I will post an update.
Updated patch attached. Giridhar -- Y Giridhar Appaji Nag | http://www.appaji.net/
diff -Nur axel-1.0b/debian/rules axel-1.0b.new/debian/rules
--- axel-1.0b/debian/rules 2007-09-14 14:50:57.000000000 +0530
+++ axel-1.0b.new/debian/rules 2007-09-14 15:09:48.122614000 +0530
@@ -1,9 +1,19 @@
#!/usr/bin/make -f
+confopts = --i18n=1 --debug=0 --prefix=/usr --etcdir=/etc
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ confopts += --strip=1
+else
+ confopts += --strip=0
+endif
+
build: build-stamp
build-stamp:
if [ ! -d debian ]; then exit 1; fi
- ./configure --i18n=1 --debug=0 --prefix=/usr --etcdir=/etc
+ ./configure $(confopts)
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ echo 'CFLAGS += -g' >> Makefile.settings
+endif
$(MAKE) DESTDIR=`pwd`/debian/axel
touch build-stamp
signature.asc
Description: Digital signature

