aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-09-13 15:37:58 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-13 15:38:33 +0000
commitcbba9f7eeead2f5c64e178d668dd314df70d7d56 (patch)
tree21a78d80ce8f9b8ebd8e245a4fbbbdabd942eede
parent5f14800ca589d5db923a6dd6e2da9ee0b151209e (diff)
build(7): Document buildenv better
Document the buildenvvars target and the BUILDENV_SHELL variable. Sponsored by: Netflix
-rw-r--r--share/man/man7/build.716
1 files changed, 15 insertions, 1 deletions
diff --git a/share/man/man7/build.7 b/share/man/man7/build.7
index 4022b915c972..45a3034843d8 100644
--- a/share/man/man7/build.7
+++ b/share/man/man7/build.7
@@ -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 ,