From 787c40bec37d6c3b8aabf52cb5758faad5a0f108 Mon Sep 17 00:00:00 2001 From: Jo Date: Sat, 18 May 2024 14:26:08 +0200 Subject: [PATCH] Fixed lto warnings for google test --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 82f9c638..11114bd7 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk include /usr/share/dpkg/pkg-info.mk +# Debian flags invented usage of LTO, which in combination with google test on +# Ubuntu 22.04.4 causes the errors supressed below +export CXXFLAGS += -Wno-lto-type-mismatch -Wno-odr VERSION1=$(shell echo ${DEB_VERSION_UPSTREAM} | cut -f1 -d.) VERSION2=$(shell echo ${DEB_VERSION_UPSTREAM} | cut -f2 -d.)