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)
Sat, May 4, 12:58 AM
Unknown Object (File)
Mon, Apr 29, 11:03 AM
Unknown Object (File)
Mar 28 2024, 9:00 PM
Unknown Object (File)
Mar 27 2024, 9:28 PM
Unknown Object (File)
Jan 10 2024, 12:29 AM
Unknown Object (File)
Jan 3 2024, 9:45 PM
Unknown Object (File)
Jan 3 2024, 9:33 PM
Unknown Object (File)
Dec 23 2023, 10:44 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40257
Build 37146: arc lint + arc unit