diff --git a/ntp.spec b/ntp.spec index 89504fde7162fdd75019e2ee780c5e615576583f..a6db5ccce27dd2a37f4f4a4119019377f33b12c5 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p17 -Release: 3 +Release: 4 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" + CFLAGS="${CFLAGS:-%{?build_cflags}} $CFLAGS -Wno-error=int-conversion"; export CFLAGS; +%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 +* Thu Feb 22 2024 luofng - 4.2.8p17-4 +- Type: enhencement +- CVE:NA +- SUG:NA +- DESC:support for building with clang + * Tue Jan 23 2024 chengyechun - 4.2.8p17-3 - Type:bugfix - ID:NA