diff --git a/scripts/binutils/binutils.add b/scripts/binutils/binutils.add index 208a940a9c..351dd075c0 100644 --- a/scripts/binutils/binutils.add +++ b/scripts/binutils/binutils.add @@ -59,6 +59,8 @@ cd .. %install + rm -rf $RPM_BUILD_ROOT + cd build make prefix=$RPM_BUILD_ROOT%{_prefix} \ mandir=$RPM_BUILD_ROOT%{_mandir} \ diff --git a/scripts/gccnewlib/gccnewlib.add b/scripts/gccnewlib/gccnewlib.add index a977dd2bdb..2560df7429 100644 --- a/scripts/gccnewlib/gccnewlib.add +++ b/scripts/gccnewlib/gccnewlib.add @@ -255,8 +255,7 @@ cd .. %install export PATH="%{_bindir}:${PATH}" - test $RPM_BUILD_ROOT = "%{_defaultbuildroot}" && \ - rm -rf $RPM_BUILD_ROOT + rm -rf $RPM_BUILD_ROOT cd build # Bug in gcc-2.95.1: It doesn't build this installation directory