Bug#908047: Respect DEB_BUILD_OPTIONS='noopt nostrip'
Package: swish++
Version: 6.1.5-5
Severity: normal
Tags: patch
The following changes cause the build to respect
DEB_BUILD_OPTIONS='noopt nostrip'.
diff -Nru swish++-6.1.5/debian/rules swish++-6.1.5/debian/rules
--- swish++-6.1.5/debian/rules 2017-08-12 05:07:33.000000000 +0100
+++ swish++-6.1.5/debian/rules 2018-09-05 13:51:23.000000000 +0100
@@ -13,12 +13,11 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-# These are probably irrelevant since the source is g++
-CFLAGS = -g -Wall
+OPTIM := -g -Wall
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS += -O0
+OPTIM += -O0
else
-CFLAGS += -O2
+OPTIM += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
install_program += -s
@@ -43,7 +42,7 @@
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ $(MAKE) "OPTIM=$(OPTIM)"
touch build-stamp
clean: unpatch
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (540, 'stable-updates'), (540, 'stable'), (520, 'testing'), (510, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 4.9.0-6-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages swish++ depends on:
ii libc6 2.24-11+deb9u3
ii libstdc++6 6.3.0-18+deb9u1
ii perl 5.24.1-3+deb9u4
ii zlib1g 1:1.2.8.dfsg-5
swish++ recommends no packages.
Versions of packages swish++ suggests:
pn antiword <none>
pn xpdf-utils <none>
Reply to: