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
Unknown Object (File)
Mon, Dec 2, 10:07 PM
Unknown Object (File)
Nov 17 2024, 5:47 AM
Unknown Object (File)
Nov 6 2024, 6:57 AM
Unknown Object (File)
Nov 6 2024, 6:57 AM
Unknown Object (File)
Nov 6 2024, 6:57 AM
Unknown Object (File)
Nov 4 2024, 9:26 AM
Unknown Object (File)
Nov 2 2024, 9:54 AM
Unknown Object (File)
Oct 7 2024, 11:38 AM
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