add -fsigned-char to %check

This commit is contained in:
shixuantong 2021-12-21 21:23:38 +08:00
parent 678241e0a9
commit db4f3d7b4d

14
m4.spec
View File

@ -1,6 +1,6 @@
Name: m4
Version: 1.4.18
Release: 16
Release: 17
Summary: A GNU implementation of macro processor
License: GPLv3+
URL: https://www.gnu.org/software/m4/
@ -30,9 +30,6 @@ This package provides help document for m4.
%build
autoreconf -ivf
%ifarch aarch64
CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
%endif
%configure
%make_build
@ -41,6 +38,9 @@ CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
rm -rf %{buildroot}%{_infodir}/dir
%check
%ifarch aarch64
CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
%endif
make check
%files
@ -55,6 +55,12 @@ make check
%{_infodir}/m4*
%changelog
* Tue Dec 21 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-17
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add -fsigned-char to %check
* Tue Aug 10 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-16
- Type:bugfix
- ID:NA