summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index b6dfc96ea..f662944f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,11 @@
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
+export DEB_CXXFLAGS_MAINT_STRIP := -O3
+export DEB_CFLAGS_MAINT_STRIP := -O3
+export DEB_CXXFLAGS_MAINT_APPEND := -O2
+export DEB_CFLAGS_MAINT_APPEND := -O2
+
# do not fail as we are just experimenting with symbol files for now
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
@@ -19,7 +24,8 @@ override_dh_install-indep:
override_dh_install-arch:
dh_movefiles
- dh_install --fail-missing
+ if [ -e debian/tmp/etc/apt ]; then dh_install -papt etc/apt/* etc/apt; fi
+ dh_install --list-missing
install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal