xbps-src: introduce "nocross" to not allow cross compilation.

This commit is contained in:
Juan RP 2014-08-21 12:07:44 +02:00
parent 954e1aff05
commit 108a6d3fac
3 changed files with 6 additions and 1 deletions

View file

@ -388,6 +388,9 @@ setup_pkg() {
wrksrc="$XBPS_BUILDDIR/$wrksrc"
fi
if [ "$cross" -a "$nocross" ]; then
msg_error "$pkgver: cannot be cross compiled, exiting...\n"
fi
}
setup_pkg_depends() {