Skip to content

Commit

Permalink
Debian fix lto warnings (#660)
Browse files Browse the repository at this point in the history
Co-authored-by: r00t <[email protected]>
  • Loading branch information
narc-Ontakac2 and r00t- authored May 18, 2024
1 parent aeaa4c3 commit bae02a4
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 bae02a4

Please sign in to comment.