fix install error with clang toolchain

This commit is contained in:
liyunfei 2023-08-14 17:08:57 +08:00
parent be735a3d7a
commit bb907f11d3

View File

@ -1,6 +1,6 @@
Name: metacity Name: metacity
Version: 3.37.1 Version: 3.37.1
Release: 4 Release: 5
Summary: Window Manager for the MATE and GNOME Flashback desktops Summary: Window Manager for the MATE and GNOME Flashback desktops
License: GPLv2+ License: GPLv2+
URL: https://download.gnome.org/sources/metacity/ URL: https://download.gnome.org/sources/metacity/
@ -46,7 +46,7 @@ developing applications that use %{name}.
rm -f src/org.gnome.metacity.gschema.valid rm -f src/org.gnome.metacity.gschema.valid
%build %build
CPPFLAGS="$CPPFLAGS -I$RPM_BUILD_ROOT%{_includedir}" CPPFLAGS="$CPPFLAGS -I%{_builddir}/%{_includedir}"
export CPPFLAGS export CPPFLAGS
rm -f configure rm -f configure
(if ! test -x configure; then autoreconf -i -f; fi; (if ! test -x configure; then autoreconf -i -f; fi;
@ -88,6 +88,9 @@ make CPPFLAGS="$CPPFLAGS" LIBS="$LIBS" %{?_smp_mflags}
%{_mandir}/man1/*.gz %{_mandir}/man1/*.gz
%changelog %changelog
* Mon Aug 14 2023 liyunfei <liyunfei33@huawei.com> - 3.37.1-5
- fix install error with clang toolchain
* Mon Aug 07 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.37.1-4 * Mon Aug 07 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.37.1-4
- fix build error - fix build error