summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-01-17 09:29:24 +1100
committerChris Johns <chrisj@rtems.org>2018-01-17 09:31:47 +1100
commit4bee4c46158ce78bf60d4b4f746cb20eab7c358e (patch)
tree05770f3098ba03918ae695ead2dd5e78afd262c5
parentgcc: Reference GNU's FTP site for all GCC parts. (diff)
downloadrtems-source-builder-4bee4c46158ce78bf60d4b4f746cb20eab7c358e.tar.bz2
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
-rw-r--r--source-builder/config/gcc-common-1.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg
index 941e15c..0bf59b6 100644
--- a/source-builder/config/gcc-common-1.cfg
+++ b/source-builder/config/gcc-common-1.cfg
@@ -32,6 +32,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.
#
%prep
@@ -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} \