From 29d413f03ab2a9c939158ba9c7ad0be2d73a131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Thu, 19 Jan 2023 16:00:07 +0100 Subject: [PATCH] debian: work around gcc#105329 (#263) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 --- debian/rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/rules b/debian/rules index 88d9e548..49442952 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,16 @@ ifeq ($(DEB_HOST_ARCH), riscv64) COMMON_CONFIGURE_OPTIONS += -DWLCS_BUILD_TSAN=OFF endif +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 +ifeq ($(DEB_HOST_ARCH), ppc64el) + ifneq ($(shell gcc --version | grep '12.[[:digit:]]\+.[[:digit:]]\+$$'),) + export DEB_CFLAGS_MAINT_APPEND = -O2 + export DEB_CXXFLAGS_MAINT_APPEND = -O2 + export DEB_FCFLAGS_MAINT_APPEND = -O2 + export DEB_FFLAGS_MAINT_APPEND = -O2 + endif +endif + override_dh_auto_configure: dh_auto_configure -- $(COMMON_CONFIGURE_OPTIONS)