eclass/portability.eclass: Discriminate on CBUILD:-CHOST for getting the bmake binary...
authorAlexis Ballier <aballier@gentoo.org>
Tue, 1 Mar 2016 10:05:41 +0000 (11:05 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 1 Mar 2016 10:06:53 +0000 (11:06 +0100)
eclass/portability.eclass

index 02c7c738f41e042541e124f4eb0885211c3d49d7..4f29725e2e32bff32f9e191a716f474182bb94b1 100644 (file)
@@ -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