diff --git a/glib.spec b/glib.spec index 0a84ff12eef68a6c15a576f9afcf0da47013384e..be2acbf757bd6a8838e7758fe751e1d33ad30691 100644 --- a/glib.spec +++ b/glib.spec @@ -1,7 +1,7 @@ Name: glib Epoch: 1 Version: 1.2.10 -Release: 57 +Release: 58 License: LGPLv2+ Summary: GLib is the core library that forms the basis for projects URL: http://www.gtk.org/ @@ -44,14 +44,17 @@ Help document for the glib package. install -p -m 0644 /usr/lib/rpm/%{_vendor}/config.guess config.guess install -p -m 0644 /usr/lib/rpm/%{_vendor}/config.sub config.sub %build -%configure LIBTOOL=%{_bindir}/libtool -%make_build LIBTOOL=%{_bindir}/libtool +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=format-security" +%endif +%configure LIBTOOL="%{_bindir}/libtool --tag=CC" +%make_build LIBTOOL="%{_bindir}/libtool --tag=CC" %install -%make_install LIBTOOL=%{_bindir}/libtool +%make_install LIBTOOL="%{_bindir}/libtool --tag=CC" chmod -c a+x %{buildroot}%{_libdir}/lib*.so* %delete_la_and_a %check -make check LIBTOOL=%{_bindir}/libtool +make check LIBTOOL="%{_bindir}/libtool --tag=CC" %post /sbin/ldconfig %postun @@ -74,6 +77,9 @@ make check LIBTOOL=%{_bindir}/libtool %exclude %{_infodir} %changelog +* Wed Apr 26 2023 Xiaoya Huang - 1.2.10-58 +- Fix clang build error + * Thu Dec 22 2022 wanglin - 1:1.2.10-57 - Fix openEuler hard code problem