[PATCH] multiprocessing.eclass: _get_all_makeopts: move MAKEOPTS after MAKEFLAGS
Mike Gilbert <[email protected]>
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
GNU make processes GNUMAKEFLAGS, MAKEFLAGS, and its command line arguments in that order, with the last processed option taking priority. MAKEOPTS is passed to make as command line arguments in the emake function, so it should be treated with higher priority than the other variables. The regex in _makeopts_jobs and _makeopts_loadavg will match the option furthest to the right, so we should move MAKEOPTS there. Signed-off-by: Mike Gilbert <[email protected]> --- eclass/multiprocessing.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/multiprocessing.eclass b/eclass/multiprocessing.eclass index 6fdac2a0af63..95ca8ec4b755 100644 --- a/eclass/multiprocessing.eclass +++ b/eclass/multiprocessing.eclass @@ -70,9 +70,9 @@ get_nproc() { # @FUNCTION: _get_all_makeopts # @INTERNAL # @DESCRIPTION: -# Returns ${MAKEOPTS} ${GNUMAKEFLAGS} ${MAKEFLAGS}. +# Returns ${GNUMAKEFLAGS} ${MAKEFLAGS} ${MAKEOPTS}. _get_all_makeopts() { - echo "${MAKEOPTS} ${GNUMAKEFLAGS} ${MAKEFLAGS}" + echo "${GNUMAKEFLAGS} ${MAKEFLAGS} ${MAKEOPTS}" } # @FUNCTION: get_makeopts_jobs -- 2.53.0