From e30a25db1cbc003e83ea03a3e1e6fb3529175fac Mon Sep 17 00:00:00 2001 From: sparky Date: Sun, 12 Feb 2006 13:20:56 +0000 Subject: [PATCH] - a lil hack of config.sub so ppc74[05]0-pld-linux-gcc will work (not needed in other apps as --host=ppc-pld-linux is used) Changed files: gcc.spec -> 1.396.2.24 --- gcc.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc.spec b/gcc.spec index 86492eb..c918cb4 100644 --- a/gcc.spec +++ b/gcc.spec @@ -153,6 +153,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _libdir32 /usr/lib %endif +%define _target_platform %{_target_cpu}-%{_vendor}-%{_target_os} + %description A compiler aimed at integrating all the optimizations and features necessary for a high-performance and stable development environment. @@ -799,6 +801,9 @@ cd gcc %{__autoconf} cd .. cp -f /usr/share/automake/config.sub . +sed -e '/ppc.*basic_machine=powerpc-unknown/a;;\nppc74[05]0-*) basic_machine=powerpc-`echo $basic_machine | sed "s/^[^-]*-//"`' \ + -i config.sub + rm -rf obj-%{_target_platform} install -d obj-%{_target_platform} -- 2.44.0