summaryrefslogtreecommitdiffstats
path: root/scripts/gcc3newlib/gccnewlib.add
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gcc3newlib/gccnewlib.add')
-rw-r--r--scripts/gcc3newlib/gccnewlib.add36
1 files changed, 8 insertions, 28 deletions
diff --git a/scripts/gcc3newlib/gccnewlib.add b/scripts/gcc3newlib/gccnewlib.add
index 0116502ca2..58f9be54d7 100644
--- a/scripts/gcc3newlib/gccnewlib.add
+++ b/scripts/gcc3newlib/gccnewlib.add
@@ -1,16 +1,3 @@
-#
-# spec file for building gcc for rtems
-#
-# Copyright (c) 1999,2000,2001,2002,2003 OARCorp, Huntsville, AL
-#
-# please send bugfixes or comments to joel@OARcorp.com
-#
-
-%define _prefix @prefix@
-%define _defaultbuildroot %{_tmppath}/%{name}-%{version}
-
-Vendor: OAR Corporation
-Distribution: Linux
Name: @target_alias@-gcc-newlib
Summary: gcc and newlib C Library for @target_alias@.
Group: rtems
@@ -152,10 +139,6 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%build
cd build
-# HACK: This doesn't work
-# %if "%{_target_os}" != "%{_build_os}"
-# CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
-# %endif
# ALERT: GCJ would be better if we could add this flag and build
# it's libraries but this code isn't ready to be embedded.
# libgcj_flag="--enable-libgcj"
@@ -176,7 +159,8 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%if %build_gnat
languages="$languages,ada"
%endif
- ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \
+ ../gcc-@gcc_version@/configure \
+ --target=@target_alias@ \
--with-gnu-as --with-gnu-ld --with-newlib --verbose \
--with-system-zlib --disable-nls \
--enable-version-specific-runtime-libs \
@@ -234,9 +218,9 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%if %build_gnat
# Install a copy of gcc as gnatgcc
# Enables us to mix different versions of gnat and gnatgcc
- rm -f $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gnatgcc@exe_ext@
- ln $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gcc@exe_ext@ \
- $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gnatgcc@exe_ext@
+ rm -f $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gnatgcc%{_exeext}
+ ln $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gcc%{_exeext} \
+ $RPM_BUILD_ROOT%{_bindir}/@target_alias@-gnatgcc%{_exeext}
%endif
# Bug in gcc-3.x: It puts the build dirs into *.la files
@@ -247,10 +231,10 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%if "@gcc_version@" < "3.0"
# Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets.
# Rename it to target_alias-cpp
- if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@;
+ if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp%{_exeext};
then
- mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \
- $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@
+ mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp%{_exeext} \
+ $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp%{_exeext}
fi
%endif
@@ -329,7 +313,3 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
esac
done
-%clean
-# let rpm --clean remove BuildRoot iif using the default BuildRoot
- test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \
- rm -rf $RPM_BUILD_ROOT