diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD index ad65c862d84..492adb13486 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 }