From 057d88bfead5f65fe94ba1aae7dc14481ae7cd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Mon, 23 Sep 2013 12:56:33 +0000 Subject: main/binutils: fix crosscompiler packaging --- main/binutils/APKBUILD | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main/binutils') diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD index ad65c862d..492adb134 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 } -- cgit v1.2.3