From 3299e374ca45ce16f6083acccbb80635edce92e5 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Mon, 21 Aug 2023 09:06:53 +0000 Subject: [PATCH] Support build with clang Signed-off-by: luofeng14 --- fcoe-utils.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fcoe-utils.spec b/fcoe-utils.spec index 893eb4b..6a77ac7 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -1,6 +1,6 @@ Name: fcoe-utils Version: 1.0.33 -Release: 4 +Release: 5 Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: https://github.com/morbidrsa/fcoe-utils @@ -32,6 +32,10 @@ fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad cp -v %{SOURCE1} quickstart.txt %build +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=format-nonliteral -Wno-error=strncat-size -Wno-error=strict-prototypes" +%endif + ./bootstrap.sh %configure %make_build @@ -70,6 +74,9 @@ done %{_mandir}/man8/* %changelog +* Wed Apr 26 2023 Xiaoya Huang - 1.0.33-4 +- Fix clang build error + * Fri Jul 14 2023 chenchen - 1.0.33-4 - fix build error caused by upgrading gcc to 12.3.0 -- Gitee