forked from Imagelibrary/rtems
2003-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* gcc3newlib/gccnewlib.add: Remove header, broken cdn-X configuration,
%clean, Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/mkspec.in: Remove exe_ext.
* gcc3newlib/target-c++.add: Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/target-g77.add: Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/target-gcc.add: Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/target-gcj.add: Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/target-gnat.add: Replace @exe_ext@ with %{_exeext}.
* gcc3newlib/target-objc.add: Replace @exe_ext@ with %{_exeext}.
+ gcc3newlib/Makefile.am: Use $(top_builddir)/common/common.add,
$(top_builddir)/common/clean.add, header.add.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user