From d439a7ccb86d3a967102202563406c2e9441a02a Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Wed, 7 Jun 2023 10:39:21 +0000 Subject: [PATCH] Add conditionals for the CFLAGS that only the GCC compiler support --- dovecot.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dovecot.spec b/dovecot.spec index 76035df..031911a 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -6,7 +6,7 @@ Name: dovecot Version: 2.3.15 -Release: 7 +Release: 8 Summary: Dovecot Secure imap server License: MIT and LGPLv2.1 URL: http://www.dovecot.org/ @@ -83,7 +83,11 @@ Man pages and other related help documents for %{name}. sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src/plugins/fts-lucene/Makefile.in %build -export CFLAGS="%{__global_cflags} -fno-strict-aliasing -fstack-reuse=none" LDFLAGS="-Wl,-z,now -Wl,-z,relro %{?__global_ldflags}" +export CFLAGS="%{__global_cflags} -fno-strict-aliasing" LDFLAGS="-Wl,-z,now -Wl,-z,relro %{?__global_ldflags}" +%if "%toolchain" == "gcc" + CFLAGS="$CFLAGS -fstack-reuse=none" + export CFLAGS +%endif mkdir -p m4 autoreconf -I . -fiv #required for aarch64 support @@ -310,6 +314,9 @@ make check %changelog +* Wed Jun 07 2023 Xiaoya Huang - 1:2.3.15-8 +- Add conditionals for the CFLAGS that only the GCC compiler support + * Fri Feb 3 2023 liyanan - 1:2.3.15-7 - Fix build failure with opensslv3 -- Gitee