From 734c77415dc0478b1340cb3256cce2becd38e7f2 Mon Sep 17 00:00:00 2001 From: jchzhou Date: Mon, 11 Mar 2024 22:31:11 +0800 Subject: [PATCH] fix the '_FORTIFY_SOURCE requires compiling with optimization' issue when building w/ clang --- fcoe-utils.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fcoe-utils.spec b/fcoe-utils.spec index f2b36c5..329fabc 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -1,6 +1,6 @@ Name: fcoe-utils Version: 1.0.34 -Release: 1 +Release: 2 Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: https://github.com/morbidrsa/fcoe-utils @@ -27,7 +27,7 @@ cp -v %{SOURCE1} quickstart.txt %build %if "%toolchain" == "clang" - CFLAGS="$CFLAGS -Wno-error=format-nonliteral -Wno-error=strncat-size -Wno-error=strict-prototypes" + CFLAGS="$CFLAGS -Wno-error=format-nonliteral -Wno-error=strncat-size -Wno-error=strict-prototypes -O2" %endif ./bootstrap.sh @@ -68,6 +68,9 @@ done %{_mandir}/man8/* %changelog +* Mon Mar 11 2024 jchzhou - 1.0.34-2 +- Fix '_FORTIFY_SOURCE requires compiling with optimization' issue when building w/ clang + * Sat Oct 07 2023 xu_ping <707078654@qq.com> - 1.0.34-1 - Upgrade version to 1.0.34 -- Gitee