Adapt signed-char check macro for default unsigned evironment
This commit is contained in:
parent
4aad3e454e
commit
1553c439d6
@ -3,7 +3,7 @@
|
||||
|
||||
Name: autoconf
|
||||
Version: 2.71
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: An extensible package to automatically configure software source code packages
|
||||
License: GPLv2+ and GPLv3+ and GFDL
|
||||
URL: https://www.gnu.org/software/%{name}/
|
||||
@ -33,6 +33,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
|
||||
@ -72,6 +79,12 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 24 2024 fuanan <fuanan3@h-partners.com> - 2.71-4
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:Adapt signed-char check macro for default unsigned evironment
|
||||
|
||||
* Sat Oct 22 2022 yixiangzhike <yixiangzhike007@163.com> - 2.71-3
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user