HomeFreeBSD

Emit an error when we seen absolute paths to .o files

Description

Emit an error when we seen absolute paths to .o files

This is usually an error caused by using an absolute path in SRCS. This
happened to me in 83c20b8a2da0 due to changing LDADD to SRCS.
I did not notice that this had created a .o file inside the source tree
since .gitignore contains "*.o" and therefore git did not report any
changes.

Adding this warning message to bsd.lib.mk/bsd.prog.mk should prevent
issues like this in the future.

There was exactly one case of an absolute OBJS path in the current source
tree but that was removed in e713d3a013882893fceb84dd14569052271497a9.

Reviewed By: emaste (earlier version), imp
Differential Revision: https://reviews.freebsd.org/D28467

Details

Provenance
arichardsonAuthored on Jun 21 2021, 1:58 PM
Reviewer
emaste
Differential Revision
D28467: Emit an error when we seen absolute paths to .o files
Parents
rG6fa0b2893f98: diff tests: Require root for report_identical
Branches
Unknown
Tags
Unknown