aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/binutils/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD
index ad65c862d8..492adb1348 100644
--- a/main/binutils/APKBUILD
+++ b/main/binutils/APKBUILD
@@ -67,6 +67,11 @@ package() {
rmdir "$pkgdir"/usr/lib64
fi
rm "$pkgdir"/usr/lib/libiberty.a
+ if [ "$CHOST" != "$CTARGET" ]; then
+ # creating cross tools: remove any files that would conflict
+ # with the native tools, or other cross tools
+ rm -r "$pkgdir"/usr/share
+ fi
find "$pkgdir" -name "*.la" -delete
}