diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 \ |