Page MenuHomeFreeBSD

Makefile: Fix MAKEOBJDIRPREFIX command-line variable check for bmake
ClosedPublic

Authored by jrtc27 on Jul 4 2021, 12:19 AM.
Tags
None
Referenced Files
F152905230: D31015.id91715.diff
Fri, Apr 17, 10:44 PM
Unknown Object (File)
Fri, Apr 10, 12:39 PM
Unknown Object (File)
Fri, Apr 10, 11:06 AM
Unknown Object (File)
Fri, Apr 10, 5:43 AM
Unknown Object (File)
Thu, Apr 9, 11:08 PM
Unknown Object (File)
Mon, Apr 6, 8:51 PM
Unknown Object (File)
Sun, Apr 5, 10:53 AM
Unknown Object (File)
Sun, Mar 29, 5:39 PM
Subscribers

Details

Summary

Unlike the old fmake, running make FOO=bar when using bmake doesn't put
FOO=bar in .MAKEFLAGS at the top level, it instead just puts FOO in
.MAKEOVERRIDES and the full MAKEFLAGS will be formed for sub-makes.
Moreover, this only applies for sub-makes in rules, so this doesn't
apply to those in shell assignments. This means that the current check
does not catch make MAKEOBJDIRPREFIX=..., only those defined in config
files. Thus we must also check .MAKEOVERRIDES explicitly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable