summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/build b/build
index a9fbab4..6ff6cda 100755
--- a/build
+++ b/build
@@ -106,8 +106,13 @@ install: build
-exec rm -f '{}' ';' && \
find "binutils-$${target}.data/usr/lib" -name '*.la' \
-exec rm -f '{}' ';' && \
- rmdir "binutils-$${target}.data/usr/lib/lib" || \
- exit 1; \
+ for dir in "binutils-$${target}.data/usr/lib/"*/; do \
+ case "$${dir}" in \
+ '$(OPK_HOST_ARCH)') ;; \
+ "$${target}") ;; \
+ *) rmdir "$${dir}" ;; \
+ esac; \
+ done; \
done
# Make symbolic links to native utilities.
for target in $$(cat ../targets); do \