From 56ed67b7303d1ad0427c357e6f23c06614894aef Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Tue, 22 Oct 2024 20:40:34 +0200 Subject: [PATCH] Disable LTO to fix build on centos9 and noble --- debian/rules | 2 ++ idzebra.spec | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index d56b5f1f..031bd49b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f export DH_VERBOSE=1 +#disable LTO otherwise compilation fails on ubuntu noble +export DEB_BUILD_MAINT_OPTIONS=optimize=-lto %: dh $@ --parallel --without python-support diff --git a/idzebra.spec b/idzebra.spec index 0ae8f563..f6fcf9a4 100644 --- a/idzebra.spec +++ b/idzebra.spec @@ -1,3 +1,6 @@ +#disable LTO otherwise compilation fails on centos9 +%global _lto_cflags %nil + %define idmetaversion %(. ./IDMETA; echo $VERSION) Name: idzebra %define namev idzebra-2.0