Adapt signed-char check macro for aarch64

This commit is contained in:
wang--ge 2024-05-15 10:58:32 +08:00
parent f001f78b2e
commit 694a7cda96

View File

@ -3,7 +3,7 @@
Name: autoconf
Version: 2.71
Release: 4
Release: 5
Summary: An extensible package to automatically configure software source code packages
License: GPLv2+ and GPLv3+ and GFDL-1.3-only
URL: https://www.gnu.org/software/%{name}/
@ -34,6 +34,13 @@ can use, in the form of M4 macro calls.
%prep
%autosetup -n %{name}-%{version} -p1
echo 'main() {}' | g++ -E -v - > g++.log 2>&1
grep -rn -m 1 COLLECT_GCC_OPTIONS g++.log > option.log
GCC_OPTION=`cat option.log`
if [[ $GCC_OPTION != *"fsigned-char"* ]];then
sed -i "s|((char) -1) < 0|((unsigned char) -1) < 0|g" lib/autoconf/c.m4
fi
rm -rf g++.log option.log
%build
export EMACS=%{_bindir}/emacs
@ -73,6 +80,9 @@ fi
%changelog
* Tue May 14 2024 Ge Wang <wang__ge@126.com> - 2.71-5
- Adapt signed-char check macro for default unsigned evironment
* Tue Jul 18 2023 fuanan <fuanan3@h-partners.com> - 2.71-4
- Type:bugfix
- ID:NA