summaryrefslogtreecommitdiffstats
path: root/share/man/man7/build.7
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2002-03-14 09:38:24 +0000
committermurray <murray@FreeBSD.org>2002-03-14 09:38:24 +0000
commit9d61be713007a5e478f0bc8730b401634f6ba6b9 (patch)
tree9c27c1691b138373c110d9729df113b4ec151f3d /share/man/man7/build.7
parentc50266a70871c549b31dd5761678161e43bb5ad1 (diff)
downloadFreeBSD-src-9d61be713007a5e478f0bc8730b401634f6ba6b9.zip
FreeBSD-src-9d61be713007a5e478f0bc8730b401634f6ba6b9.tar.gz
Add an ENVIRONMENT section, and document TARGET_ARCH and NO_WERROR.
Add a cross-build example.
Diffstat (limited to 'share/man/man7/build.7')
-rw-r--r--share/man/man7/build.716
1 files changed, 16 insertions, 0 deletions
diff --git a/share/man/man7/build.7 b/share/man/man7/build.7
index da318ed..17f9f97 100644
--- a/share/man/man7/build.7
+++ b/share/man/man7/build.7
@@ -107,6 +107,15 @@ library sub-directory.
.Pp
For more information about the ports build process, see
.Xr ports 7 .
+.Sh ENVIRONMENT
+.Bl -tag -width ".Ev TARGET_ARCH"
+.It Ev TARGET_ARCH
+The target architecture.
+Set this to cross-build for a different architecture.
+.It Ev NO_WERROR
+If defined, warnings will not cause the build to halt, even if the
+makefile says otherwise.
+.El
.Sh FILES
.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
.It Pa /etc/make.conf
@@ -153,6 +162,13 @@ otherwise many programs which have been rebuilt
.Nm top ,
etc)
may not work with the old kernel which is still running.
+.Pp
+The following sequence of commands can be used to cross-build the
+system for the Alpha architecture on an i386 host:
+.Bd -literal -offset indent
+cd /usr/src
+make -DNO_WERROR=1 TARGET_ARCH=alpha buildworld
+.Ed
.Sh SEE ALSO
.Xr cc 1 ,
.Xr install 1 ,
OpenPOWER on IntegriCloud