summaryrefslogtreecommitdiffstats
path: root/scripts/gcc3newlib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gcc3newlib')
-rw-r--r--scripts/gcc3newlib/gccnewlib.add7
-rw-r--r--scripts/gcc3newlib/mkspec.in4
2 files changed, 6 insertions, 5 deletions
diff --git a/scripts/gcc3newlib/gccnewlib.add b/scripts/gcc3newlib/gccnewlib.add
index b966956231..0116502ca2 100644
--- a/scripts/gcc3newlib/gccnewlib.add
+++ b/scripts/gcc3newlib/gccnewlib.add
@@ -1,12 +1,13 @@
#
# spec file for building gcc for rtems
#
-# Copyright (c) 1999,2000,2001 OARCorp, Huntsville, AL
+# 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
@@ -28,7 +29,7 @@ Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz
Source1: ftp://sources.redhat.com/pub/newlib/newlib-@newlib_version@.tar.gz
@PATCH1@
@PATCH3@
-Buildroot: %{_tmppath}/%{name}
+Buildroot: %{_defaultbuildroot}
BuildPreReq: texinfo >= 4.2
BuildPreReq: @target_alias@-binutils
#
@@ -330,5 +331,5 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%clean
# let rpm --clean remove BuildRoot iif using the default BuildRoot
- test "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}" && \
+ test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \
rm -rf $RPM_BUILD_ROOT
diff --git a/scripts/gcc3newlib/mkspec.in b/scripts/gcc3newlib/mkspec.in
index ffe0591b39..07615c7fa2 100644
--- a/scripts/gcc3newlib/mkspec.in
+++ b/scripts/gcc3newlib/mkspec.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Usage: mktoolspec CPU
+# Usage: mkspec CPU
#
RTEMS_DIR=`dirname $0`/@top_srcdir@
@@ -13,7 +13,7 @@ usage()
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <setup.cache>"
- echo " -o <rpm-spec-dir>"
+ echo " -a <alternate specs.in>"
exit 1 ;
}