diff --git a/ntp.spec b/ntp.spec index f4f3cabb6b5414675057a2434d41257fa28cd80f..ceb5f62796ce0a2899d454afa320d68cad42f08d 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