diff --git a/debian/rules b/debian/rules index ca9693b..777ddea 100755 --- a/debian/rules +++ b/debian/rules @@ -15,9 +15,9 @@ DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) # for finding the correct llvm-config when meson doesn't know about it yet LLVM_VERSION = 19 export PATH:=/usr/lib/llvm-$(LLVM_VERSION)/bin/:$(PATH) - -DEB_CFLAGS_MAINT_APPEND := -Wall -DEB_CXXFLAGS_MAINT_APPEND := -Wall +DEB_BUILD_MAINT_OPTIONS += optimize=-lto +DEB_CFLAGS_MAINT_APPEND += -Wall +DEB_CXXFLAGS_MAINT_APPEND += -Wall ifneq (,$(filter $(DEB_HOST_ARCH), armhf)) # Workaround for a variant of LP: #725126 DEB_CFLAGS_MAINT_APPEND += -fno-optimize-sibling-calls