Skip to content

Commit

Permalink
Fixed lto warnings for google test
Browse files Browse the repository at this point in the history
  • Loading branch information
narc-Ontakac2 committed May 18, 2024
1 parent cb53b59 commit 0b24407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 0b24407

Please sign in to comment.