about summary refs log tree commit diff
path: root/debian/rules
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-08-25 12:44:47 +0200
committerMichael Biebl <biebl@debian.org>2022-08-25 12:44:47 +0200
commit53e7be262cc4f3a1c43b3054bc9ce917e7f38790 (patch)
tree016bd40032a0c10d292308213aa5499f3d5065f1 /debian/rules
parent4741f1a52215c7ba466140912084d6906185bef3 (diff)
Explicitly disable LTO via dpkg-buildflags
NetworkManager requires additional build flags like -flto-partition=none
to build properly with LTO enabled.

See
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1070
and
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/839ba57c7f41798dddd43495bb0b2cf312bd0f6f

Closes: #1015556
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 52c938d3..18fb355f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 
 include /usr/share/dpkg/architecture.mk
 
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
 
 export PYTHON=/usr/bin/python3