diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 11:05:41 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 11:06:53 +0100 |
commit | 5bf8dfe651b5f276e53c916ca0b9923be3549d4b (patch) | |
tree | af3319b6b6238b9eded49b3b828aed25e817cbca /eclass/portability.eclass | |
parent | sys-freebsd/freebsd-lib: set RPCDIR to include_proper when pre-installing hea... (diff) | |
download | gentoo-5bf8dfe651b5f276e53c916ca0b9923be3549d4b.tar.gz gentoo-5bf8dfe651b5f276e53c916ca0b9923be3549d4b.tar.bz2 gentoo-5bf8dfe651b5f276e53c916ca0b9923be3549d4b.zip |
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.
Diffstat (limited to 'eclass/portability.eclass')
-rw-r--r-- | eclass/portability.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
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 |