gcc: Add GCC option to build on Linux and do not build the texinfo.

- GCC on recent Linux systems needs `-fgnu89-inline` to build.
- Disable building texinfo. Makeinfo on some hosts breaks the build.

Update #3262
This commit is contained in:
Chris Johns 2018-01-17 09:29:24 +11:00
parent 85d51a45e8
commit 4bee4c4615

View File

@ -31,6 +31,16 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
%global _gcclibdir %{_prefix}/lib
#
# Update the build flags need to build the older gcc with newer compilers.
#
%define build_cflags %{build_cflags} -fgnu89-inline
#
# Do not build GCC doco, it seems to break with age.
#
%define disable_MAKEINFO 1
#
# Prepare the source code.
#
@ -151,6 +161,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
--enable-version-specific-runtime-libs \
--disable-lto \
--enable-newlib-io-c99-formats \
%{?disable_MAKEINFO:MAKEINFO=missing} \
%{?with_iconv:--enable-newlib-iconv} \
%{?with_iconv:--enable-newlib-iconv-encodings=%{_newlib_iconv_encodings}} \
%{?with_threads:--enable-threads}%{!?with_threads:--disable-threads} \