summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/build b/build
index 7c8e44c..3810319 100755
--- a/build
+++ b/build
@@ -99,7 +99,8 @@ install: build
find "binutils-$${target}.data/usr/lib" -name 'libiberty.a' \
-exec rm -f '{}' ';' && \
find "binutils-$${target}.data/usr/lib" -name '*.la' \
- -exec rm -f '{}' ';' || \
+ -exec rm -f '{}' ';' && \
+ rmdir "binutils-$${target}.data/usr/lib/lib" || \
exit 1; \
done
# Make symbolic links to native utilities.