build(7): Document buildenv better

Document the buildenvvars target and the BUILDENV_SHELL variable.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh committed 2025-09-13 09:38:33 -06:00
1 parent 5f14800ca5
commit cbba9f7eee
1 file changed
+15 -1
+15 -1
View File
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd August 8, 2025
.Dd September 13, 2025
.Dt BUILD 7
.Os
.Sh NAME
@@ -193,6 +193,20 @@ the compiler, linker, assembler, headers and libraries) has been
built; see the
.Cm toolchain
target below.
.Pp
.Va BUILDENV_SHELL ,
which defaults to
.Pa /bin/sh ,
is executed.
This can be set to a command that does something in this build environment,
like cross build an application.
If that application has dependencies, though, the
.Pa devel/poudriere
package or port provides a more generic solution.
.It Cm buildenvvars
Print the shell variables that are set for a
.Cm buildenv
envirnoment and exit.
.It Cm buildworld
Build everything but the kernel, configure files in
.Pa etc ,