summaryrefslogtreecommitdiffstats
path: root/scripts/gcc3newlib/gccnewlib.add
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-04-12 06:37:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-04-12 06:37:51 +0000
commitb64edb5b07c6f65a84982b260b1b2a1cb7a4e917 (patch)
tree3ef5c870e5599f51ee376bfba2e120ddffcfff92 /scripts/gcc3newlib/gccnewlib.add
parent2005-04-12 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b64edb5b07c6f65a84982b260b1b2a1cb7a4e917.tar.bz2
Apply patches in tool subdirs.
Diffstat (limited to 'scripts/gcc3newlib/gccnewlib.add')
-rw-r--r--scripts/gcc3newlib/gccnewlib.add9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/gcc3newlib/gccnewlib.add b/scripts/gcc3newlib/gccnewlib.add
index ccae5ffcb7..21af5572ca 100644
--- a/scripts/gcc3newlib/gccnewlib.add
+++ b/scripts/gcc3newlib/gccnewlib.add
@@ -159,8 +159,13 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%prep
# untar the sources inside %{gcc_target}-gcc-newlib
%setup -c -T -n %{name}-%{version} -a0 -a1
-%{?PATCH0:%patch0 -p0}
-%{?PATCH1:%patch1 -p0}
+
+cd gcc-%{gcc_version}
+%{?PATCH0:%patch0 -p1}
+cd ..
+cd newlib-%{newlib_version}
+%{?PATCH1:%patch1 -p1}
+cd ..
cd gcc-%{gcc_version}
sed -e 's/\(version_string = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}-@gcc_patch_version@\/newlib-%{newlib_version}-@newlib_patch_version@-@Release@)/' \