Skip to content

Commit

Permalink
debian: work around gcc#105329 (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq authored and AlanGriffiths committed Jan 19, 2023
1 parent cc93c86 commit 29d413f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 29d413f

Please sign in to comment.