From c3c2cc4b61174015df410e678bc55f4ca0b06103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Thu, 2 Dec 2021 10:57:16 -0500 Subject: [PATCH] packaging: fix packaging on ubuntu 21 debhelper on ubuntu 21 is bugguy and introduced LTO bugs Some similar issues: https://bugreports.qt.io/browse/QTBUG-98805 https://www.mail-archive.com/lfs-support@lists.linuxfromscratch.org/msg06950.html https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200#c46 https://github.com/rhboot/efivar/issues/156 Disabling lto flags for daemon fix this issue. Change-Id: I7c666c9e3d33f659c781a4bf68debf367a451a88 --- packaging/rules/debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/rules/debian/rules b/packaging/rules/debian/rules index a1fd53bb..3acec012 100755 --- a/packaging/rules/debian/rules +++ b/packaging/rules/debian/rules @@ -47,6 +47,8 @@ export PATH := $(QT_JAMI_PREFIX)/bin:${PATH} export LD_LIBRARY_PATH := $(QT_JAMI_PREFIX)/lib:${LD_LIBRARY_PATH} export PKG_CONFIG_PATH := $(QT_JAMI_PREFIX)/lib/pkgconfig:${PKG_CONFIG_PATH} export CMAKE_PREFIX_PATH := $(QT_JAMI_PREFIX)/lib/cmake:${CMAKE_PREFIX_PATH} +export CFLAGS := $(CFLAGS) -fno-lto +export CXXFLAGS := $(CXXFLAGS) -fno-lto # Installation directories. OCI_INSTALL_DIR = $(CURDIR)/debian/$(JAMI_ALL_IN_ONE_PKG_NAME) -- GitLab