diff options
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rwxr-xr-x | debian/rules | 14 |
2 files changed, 10 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog index 4e3baea..2bf38f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ gnumach (1:20040915-1) unstable; urgency=low * Changed Maintainer address. * Added myself to Uploaders. * Cleaned and updated debian/copyright file. + * Honour DEB_BUILD_OPTIONS. * Split patches into debian/patches/. * Allow to build natively on non GNU/Hurd systems. * Enable i386, kfreebsd-i386 and knetbsd-i386 on all packages. diff --git a/debian/rules b/debian/rules index e4634fc..cee71ed 100755 --- a/debian/rules +++ b/debian/rules @@ -14,16 +14,20 @@ ## ############################################################################### -# The name of the package (for example, `emacs'). package := gnumach package-dev := gnumach-dev + DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -# Configuration variables (these should be pretty generic) -CC = cc -CFLAGS = -O2 -g -pipe -Wall -LDFLAGS = -s +CFLAGS = -Wall -g -pipe + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + PREFIX = /usr BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/man |
