cross-*: restrict building only on native builds.

This commit is contained in:
Juan RP 2014-02-10 16:10:47 +01:00
parent b1c554802a
commit 1c6d2f8af1
8 changed files with 29 additions and 8 deletions

View file

@ -35,6 +35,9 @@ depends="${pkgname}-libc-${version}_${revision}"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
only_for_archs="i686 x86_64"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -35,6 +35,9 @@ depends="${pkgname}-libc-${version}_${revision}"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
only_for_archs="i686 x86_64"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -34,6 +34,10 @@ makedepends="libfl-devel zlib-devel gmp-devel mpfr-devel libmpc-devel"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
depends="${pkgname}-libc-${version}_${revision}"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -31,11 +31,10 @@ hostmakedepends="perl flex"
makedepends="libfl-devel zlib-devel gmp-devel mpfr-devel libmpc-devel"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
depends="${pkgname}-libc-${version}_${revision}"
only_for_archs="i686 x86_64 x86_64-musl"
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
# No need to build a cross compiler if we are running x86_64-musl.
msg_normal "${pkgname}-${version}: cannot be built on $XBPS_TARGET_MACHINE\n"
exit 0
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {

View file

@ -34,6 +34,10 @@ makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel"
depends="${pkgname}-libc-${version}_${revision}"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -34,6 +34,10 @@ makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel"
depends="${pkgname}-libc-${version}_${revision}"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -34,6 +34,10 @@ makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel"
depends="${pkgname}-libc-${version}_${revision}"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"

View file

@ -31,12 +31,12 @@ hostmakedepends="perl flex"
makedepends="libfl-devel zlib-devel gmp-devel mpfr-devel libmpc-devel"
nostrip_files="libgcc.a libgcov.a libgcc_eh.a"
depends="${pkgname}-libc-${version}_${revision}"
only_for_archs="i686 i686-musl x86_64"
if [ "$XBPS_TARGET_MACHINE" = "x86_64-musl" ]; then
# No need to build a cross compiler if we are running x86_64-musl.
msg_normal "${pkgname}-${version}: cannot be built on $XBPS_TARGET_MACHINE\n"
exit 0
if [ "$CROSS_BUILD" ]; then
msg_error "${pkgname}-${version}: cannot be cross compiled.\n"
fi
_apply_patch() {
local pname="$(basename $1)"