From 54e441faf55b57e5f87d99c04e86bbc016d98c44 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Sat, 11 Feb 2012 12:08:56 +0100 Subject: [PATCH] Implement DEB_BUILD_OPTIONS' noopt flag. --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 2a60832..2041173 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,10 @@ export REPACK_SH=$(CURDIR)/debian/repack.sh DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export GPAC_SVN_REVISION ?= $(shell dpkg-parsechangelog | grep Version | sed 's/Version:.*+svn\([0-9]\+\).*/\1/') +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) +DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt +endif + %: dh $@ --parallel @@ -16,7 +20,8 @@ override_dh_auto_configure: --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX" \ --enable-joystick \ --enable-debug \ - --disable-ssl + --disable-ssl \ + $(DEB_EXTRA_CONFIGURE_FLAGS) echo "#define GPAC_SVN_REVISION \"\"" >include/gpac/version.h override_dh_auto_install: -- 2.30.2