aboutsummaryrefslogtreecommitdiffstats
path: root/main/binutils/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-20 13:47:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-20 13:48:16 +0000
commit1c618e9658adaec86ff79f6c677a7254c4722064 (patch)
treecfafd54467080a2f32db1ad84c5d54e1a69631f1 /main/binutils/APKBUILD
parent41cb787e4261b69ac73ad3b2f3256ec3fadefe8c (diff)
downloadaports-1c618e9658adaec86ff79f6c677a7254c4722064.tar.bz2
aports-1c618e9658adaec86ff79f6c677a7254c4722064.tar.xz
main/binutils: fix crosscompiler generation
Diffstat (limited to 'main/binutils/APKBUILD')
-rw-r--r--main/binutils/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD
index 00ed4ff5c8..ad65c862d8 100644
--- a/main/binutils/APKBUILD
+++ b/main/binutils/APKBUILD
@@ -8,19 +8,18 @@ depends=
makedepends="bison flex texinfo zlib-dev"
arch="all"
license="GPL"
-_pkgname=$pkgname
+subpackages="$pkgname-doc $pkgname-libs"
+_builddir="$srcdir/$pkgname-$pkgver"
if [ "$CHOST" != "$CTARGET" ] && [ -n "$CHOST" -a -n "$CTARGET" ]; then
pkgname="$pkgname-$CTARGET"
+ subpackages=""
somask="libbfd-$pkgver.so libopcodes-$pkgver.so"
fi
-subpackages="$pkgname-doc $pkgname-libs"
source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
binutils-ld-fix-static-linking.patch"
-_builddir="$srcdir/$_pkgname-$pkgver"
-
prepare() {
local i
cd "$_builddir"