[rtems-crossrpms commit] Add with_ppl_version_check hack.

Ralf Corsepius ralf at rtems.org
Thu Mar 21 13:16:35 UTC 2013


Module:    rtems-crossrpms
Branch:    rtems-4-10-branch
Commit:    a82174a6e0e300f3bfde22697b2e3c6ed320b1f7
Changeset: http://git.rtems.org/rtems-crossrpms/commit/?id=a82174a6e0e300f3bfde22697b2e3c6ed320b1f7

Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
Date:      Thu Mar 21 07:03:43 2013 +0100

Add with_ppl_version_check hack.

---

 gcc/build.add     |    1 +
 gcc/gccnewlib.add |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gcc/build.add b/gcc/build.add
index f8ed2e7..04547e6 100644
--- a/gcc/build.add
+++ b/gcc/build.add
@@ -50,6 +50,7 @@
     --enable-version-specific-runtime-libs \
     --enable-threads \
     --with-sysroot=%{_exec_prefix}/@tool_target@/sys-root \
+    %{!?with_ppl_version_check:--disable-ppl-version-check} \
     %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
     %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
 %if %build_newlib
diff --git a/gcc/gccnewlib.add b/gcc/gccnewlib.add
index 6e7f1ca..d5ae373 100644
--- a/gcc/gccnewlib.add
+++ b/gcc/gccnewlib.add
@@ -40,6 +40,14 @@ BuildRequires:  %{_host_rpmprefix}gcc
 # EXPERIMENTAL: Enable newlib's iconv
 %bcond_with iconv
 
+# FIXME: Hack to let building succeed on Fedora > 18
+%if 0%{?fedora} > 18
+# Fedora > 18 libppl is newer than what ancient GCCs accept
+%bcond_with ppl_version_check
+%else
+%bcond_without ppl_version_check
+%endif
+
 # versions of libraries, we conditionally bundle if necessary
 %global mpc_version	0.8.1
 %global mpfr_version	2.4.2




More information about the vc mailing list