aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-08 10:15:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-08 11:40:50 +0000
commitf7c4c6ba46d213b5b518088b932be07007e54ff7 (patch)
tree9c1234c5c259a353e8e6de9fc789375e826150cb
parent9b63e3313218ef260b762b80c3b078ebf5ca45bf (diff)
downloadaports-f7c4c6ba46d213b5b518088b932be07007e54ff7.tar.bz2
aports-f7c4c6ba46d213b5b518088b932be07007e54ff7.tar.xz
main/pkgconf: support crosscompiling
-rw-r--r--main/pkgconf/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/pkgconf/APKBUILD b/main/pkgconf/APKBUILD
index 63a3cc41cc..b6a29ebf28 100644
--- a/main/pkgconf/APKBUILD
+++ b/main/pkgconf/APKBUILD
@@ -32,9 +32,13 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
+ --build=${CBUILD} \
+ --host=${CHOST} \
|| return 1
make || return 1
- make check || return 1
+ if [ "$CHOST" = "$CBUILD" ]; then
+ make check || return 1
+ fi
}
package() {