[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.78.908.2009220812330.10964@n3.vanv.qr>
Date: Tue, 22 Sep 2020 08:15:59 +0200 (CEST)
From: Jan Engelhardt <jengelh@...i.de>
To: Stephen Hemminger <stephen@...workplumber.org>
cc: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2] build: avoid make jobserver warnings
On Tuesday 2020-09-22 02:19, Stephen Hemminger wrote:
>> I observe:
>>
>> ยป make -j8 CCOPTS=-ggdb3
>> lib
>> make[1]: warning: -j8 forced in submake: resetting jobserver mode.
>> make[1]: Nothing to be done for 'all'.
>> ip
>> make[1]: warning: -j8 forced in submake: resetting jobserver mode.
>> CC ipntable.o
>>
>> MFLAGS is a historic variable of some kind; removing it fixes the
>> jobserver issue.
>
>MFLAGS is a way to pass flags from original make into the sub-make.
MAKEFLAGS and MFLAGS are already exported by make (${MAKE} is magic
methinks), so they need no explicit passing. You can check this by
adding something like 'echo ${MAKEFLAGS}' to the lib/Makefile
libnetlink.a target and then invoking e.g. `make -r` from the
toplevel, and notice how -r shows up again in the submake.
Powered by blists - more mailing lists