aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/140-mpc.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-11 12:49:48 -0800
committerAlexey Neyman <stilor@att.net>2017-02-11 12:49:48 -0800
commitc8e82815331803bce45eb8f90b790dd235025259 (patch)
tree1b63cacb0686402c6facb7387f2eda281c8cf904 /scripts/build/companion_libs/140-mpc.sh
parent7dfae65ce9511debb52cb2bb0303bab76012db47 (diff)
downloadcrosstool-ng-c8e82815331803bce45eb8f90b790dd235025259.tar.gz
crosstool-ng-c8e82815331803bce45eb8f90b790dd235025259.tar.bz2
crosstool-ng-c8e82815331803bce45eb8f90b790dd235025259.zip
Skip comp.libs checking on host for canadian
... they all want to run the binaries they produced, which fails when build!=host. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/companion_libs/140-mpc.sh')
-rw-r--r--scripts/build/companion_libs/140-mpc.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build/companion_libs/140-mpc.sh b/scripts/build/companion_libs/140-mpc.sh
index acb5fd3f..e6efb4f7 100644
--- a/scripts/build/companion_libs/140-mpc.sh
+++ b/scripts/build/companion_libs/140-mpc.sh
@@ -100,8 +100,13 @@ do_mpc_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}
if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
- CT_DoLog EXTRA "Checking MPC"
- CT_DoExecLog ALL make ${JOBSFLAGS} -s check
+ if [ "${host}" = "${CT_BUILD}" ]; then
+ CT_DoLog EXTRA "Checking MPC"
+ CT_DoExecLog ALL make ${JOBSFLAGS} -s check
+ else
+ # Cannot run host binaries on build in a canadian cross
+ CT_DoLog EXTRA "Skipping check for MPC on the host"
+ fi
fi
CT_DoLog EXTRA "Installing MPC"