Follow-up Comment #9, bug #63347 (project make): > Differences that I could spot: > - there's "rR" instead of "-rR" > - "-rR" is at the beginning not at the end > - MAKE_OPTS are part of MAKEFLAGS --
Well defined MAKEFLAGS has the following format [shortoptions] [-option with arg]... [--long option]... [ -- cli definitions] e.g. rRs -Isrc -j2 -Orecurse --jobserver-auth=fifo:/tmp/GMfifo14676 --no-print-directory -- H=h C=c A=a makefile can contain something like MAKEFLAGS+=-k MAKEFLAGS=r Once parsing is over make rearranges MAKEFLAGS to conform to this format. This patch causes make to do this rearrangement at parse time, each time MAKEFLAGS is modified. You observe the differences between a defined MAKEFLAGS and not defined MAKEFLAGS. > that's what confuses kernel's build system since it merely looks for 's' in > MAKEFLAGS after stripping long options: Thanks for your report. i submitted a patch here https://lore.kernel.org/linux-kbuild/CAK7LNAQP4S0ACMkB3KtaJTaeRkpT_KjRa4CrYxNJboTdthN=z...@mail.gmail.com/T/#m6e2681847c0b7968a713765f1df455bfae307807 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63347> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/