From e62fa5e5320cec75521be0c0bbbef29e134be5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Wed, 3 May 2023 23:28:38 +0200 Subject: [PATCH] Do not build with link-time optimization Closes: #1034873 --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 353d26eb9..4cc1e9faa 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,9 @@ include /usr/share/dpkg/pkg-info.mk +# Do not build with link-time optimization, cf. https://bugs.debian.org/1034873 +export DEB_BUILD_MAINT_OPTIONS := optimize=-lto + export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed