From af26746d8b3b46b785e889685edc3ff9719d90e3 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Mon, 29 May 2023 10:59:49 +0800 Subject: [PATCH] Add clang compile support --- ntp.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ntp.spec b/ntp.spec index f4f3cab..ceb5f62 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p15 -Release: 6 +Release: 7 Summary: A protocol designed to synchronize the clocks of computers over a network License: MIT and BSD and BSD with advertising URL: https://www.ntp.org/ @@ -68,6 +68,9 @@ done %build sed -i 's|$CFLAGS -Wstrict-overflow|$CFLAGS|' configure sntp/configure export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow" +%if "%toolchain" == "clang" +export CFLAGS="$CFLAGS -Wno-error=int-conversion" +%endif %configure \ --sysconfdir=%{_sysconfdir}/ntp/crypto --with-locfile=redhat \ --without-ntpsnmpd --enable-all-clocks --enable-parse-clocks \ @@ -208,6 +211,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Mon May 29 2023 liyunfei - 4.2.8p15-7 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: add clang compile support + * Fri Dec 3 2021 renmingshuai - 4.2.8p15-6 - Type:bugfix - ID:NA -- Gitee