From: Alexis Ballier Date: Tue, 1 Mar 2016 10:05:41 +0000 (+0100) Subject: eclass/portability.eclass: Discriminate on CBUILD:-CHOST for getting the bmake binary... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5bf8dfe651b5f276e53c916ca0b9923be3549d4b;p=gentoo.git eclass/portability.eclass: Discriminate on CBUILD:-CHOST for getting the bmake binary name instead of USERLAND variable. This helps for cross-compiling from another userland. --- diff --git a/eclass/portability.eclass b/eclass/portability.eclass index 02c7c738f41e..4f29725e2e32 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -107,9 +107,9 @@ dlopen_lib() { # Note: the bsdmake for Darwin userland is with compatibility with MacOSX # default name. get_bmake() { - if [[ ${USERLAND} == *BSD ]]; then + if [[ ${CBUILD:-${CHOST}} == *bsd* ]]; then echo make - elif [[ ${USERLAND} == "Darwin" ]]; then + elif [[ ${CBUILD:-${CHOST}} == *darwin* ]]; then echo bsdmake else echo bmake