Page MenuHomeFreeBSD

bsd.lib.mk: document INTERNALLIB and PRIVATELIB
ClosedPublic

Authored by kib on Nov 27 2025, 4:44 PM.
Tags
None
Referenced Files
F154150041: D53948.id167204.diff
Sun, Apr 26, 2:52 PM
Unknown Object (File)
Sat, Apr 25, 1:44 AM
Unknown Object (File)
Mon, Apr 20, 7:09 PM
Unknown Object (File)
Mon, Apr 20, 2:01 PM
Unknown Object (File)
Fri, Apr 17, 3:40 AM
Unknown Object (File)
Wed, Apr 15, 11:28 AM
Unknown Object (File)
Wed, Apr 15, 11:25 AM
Unknown Object (File)
Sat, Apr 11, 3:31 PM
Subscribers

Diff Detail

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

Event Timeline

kib requested review of this revision.Nov 27 2025, 4:44 PM

All the variables in here would benefit from documentation but we can start with these

This revision is now accepted and ready to land.Nov 27 2025, 5:02 PM

LGTM with one nit.

share/mk/bsd.lib.mk
5

For consistency, either add "we" before "build", or remove it in the INTERNALLIB entry.

des requested changes to this revision.Nov 27 2025, 6:06 PM
des added inline comments.
share/mk/bsd.lib.mk
2
8

This is incorrect, as I told you on IRC. Headers for private libraries are installed in /usr/include/private.

This revision now requires changes to proceed.Nov 27 2025, 6:06 PM
kib marked 3 inline comments as done.

INTERNALLIB: s/pic/pie/; only state that the result is suitable for linking into binaries. This sounds like a bug to me: we should build pic version instead of pie.
PRIVATELIB: headers go into include/private/<name>

This revision is now accepted and ready to land.Nov 27 2025, 6:47 PM

Slightly more clarity for normal libs.

This revision now requires review to proceed.Nov 27 2025, 6:48 PM
This revision is now accepted and ready to land.Nov 27 2025, 6:51 PM
This revision was automatically updated to reflect the committed changes.