xref: /freebsd/share/man/man5/src.conf.5 (revision 99282790b7d01ec3c4072621d46a0d7302517ad4)
1.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
2.\" $FreeBSD$
3.Dd June 6, 2020
4.Dt SRC.CONF 5
5.Os
6.Sh NAME
7.Nm src.conf
8.Nd "source build options"
9.Sh DESCRIPTION
10The
11.Nm
12file contains settings that will apply to every build involving the
13.Fx
14source tree; see
15.Xr build 7 .
16.Pp
17The
18.Nm
19file uses the standard makefile syntax.
20However,
21.Nm
22should not specify any dependencies to
23.Xr make 1 .
24Instead,
25.Nm
26is to set
27.Xr make 1
28variables that control the aspects of how the system builds.
29.Pp
30The default location of
31.Nm
32is
33.Pa /etc/src.conf ,
34though an alternative location can be specified in the
35.Xr make 1
36variable
37.Va SRCCONF .
38Overriding the location of
39.Nm
40may be necessary if the system-wide settings are not suitable
41for a particular build.
42For instance, setting
43.Va SRCCONF
44to
45.Pa /dev/null
46effectively resets all build controls to their defaults.
47.Pp
48The only purpose of
49.Nm
50is to control the compilation of the
51.Fx
52source code, which is usually located in
53.Pa /usr/src .
54As a rule, the system administrator creates
55.Nm
56when the values of certain control variables need to be changed
57from their defaults.
58.Pp
59In addition, control variables can be specified
60for a particular build via the
61.Fl D
62option of
63.Xr make 1
64or in its environment; see
65.Xr environ 7 .
66.Pp
67The environment of
68.Xr make 1
69for the build can be controlled via the
70.Va SRC_ENV_CONF
71variable, which defaults to
72.Pa /etc/src-env.conf .
73Some examples that may only be set in this file are
74.Va WITH_DIRDEPS_BUILD ,
75and
76.Va WITH_META_MODE ,
77and
78.Va MAKEOBJDIRPREFIX
79as they are environment-only variables.
80.Pp
81The values of variables are ignored regardless of their setting;
82even if they would be set to
83.Dq Li FALSE
84or
85.Dq Li NO .
86The presence of an option causes
87it to be honored by
88.Xr make 1 .
89.Pp
90This list provides a name and short description for variables
91that can be used for source builds.
92.Bl -tag -width indent
93.It Va WITHOUT_ACCT
94Set to not build process accounting tools such as
95.Xr accton 8
96and
97.Xr sa 8 .
98.It Va WITHOUT_ACPI
99Set to not build
100.Xr acpiconf 8 ,
101.Xr acpidump 8
102and related programs.
103.It Va WITHOUT_APM
104Set to not build
105.Xr apm 8 ,
106.Xr apmd 8
107and related programs.
108.It Va WITHOUT_ASSERT_DEBUG
109Set to compile programs and libraries without the
110.Xr assert 3
111checks.
112.It Va WITHOUT_AT
113Set to not build
114.Xr at 1
115and related utilities.
116.It Va WITHOUT_ATM
117Set to not build
118programs and libraries related to ATM networking.
119.It Va WITHOUT_AUDIT
120Set to not build audit support into system programs.
121.It Va WITHOUT_AUTHPF
122Set to not build
123.Xr authpf 8 .
124.It Va WITHOUT_AUTOFS
125Set to not build
126.Xr autofs 5
127related programs, libraries, and kernel modules.
128.It Va WITHOUT_AUTO_OBJ
129Disable automatic creation of objdirs.
130This is enabled by default if the wanted OBJDIR is writable by the current user.
131.Pp
132This must be set in the environment, make command line, or
133.Pa /etc/src-env.conf ,
134not
135.Pa /etc/src.conf .
136.It Va WITH_BEARSSL
137Build the BearSSL library.
138.Pp
139BearSSL is a tiny SSL library suitable for embedded environments.
140For details see
141.Lk http://www.BearSSL.org/
142.Pp
143This library is currently only used to perform
144signature verification and related operations
145for Verified Exec and
146.Xr loader 8 .
147When set, these options are also in effect:
148.Pp
149.Bl -inset -compact
150.It Va WITH_LOADER_EFI_SECUREBOOT
151(unless
152.Va WITHOUT_LOADER_EFI_SECUREBOOT
153is set explicitly)
154.It Va WITH_LOADER_VERIEXEC
155(unless
156.Va WITHOUT_LOADER_VERIEXEC
157is set explicitly)
158.It Va WITH_LOADER_VERIEXEC_VECTX
159(unless
160.Va WITHOUT_LOADER_VERIEXEC_VECTX
161is set explicitly)
162.It Va WITH_VERIEXEC
163(unless
164.Va WITHOUT_VERIEXEC
165is set explicitly)
166.El
167.It Va WITHOUT_BHYVE
168Set to not build or install
169.Xr bhyve 8 ,
170associated utilities, and examples.
171.Pp
172This option only affects amd64/amd64.
173.It Va WITH_BHYVE_SNAPSHOT
174Set to include support for save and restore (snapshots) in
175.Xr bhyve 8
176and
177.Xr bhyvectl 8 .
178.Pp
179This option only affects amd64/amd64.
180.It Va WITH_BIND_NOW
181Build all binaries with the
182.Dv DF_BIND_NOW
183flag set to indicate that the run-time loader should perform all relocation
184processing at process startup rather than on demand.
185.It Va WITHOUT_BLACKLIST
186Set this if you do not want to build
187.Xr blacklistd 8
188and
189.Xr blacklistctl 8 .
190When set, these options are also in effect:
191.Pp
192.Bl -inset -compact
193.It Va WITHOUT_BLACKLIST_SUPPORT
194(unless
195.Va WITH_BLACKLIST_SUPPORT
196is set explicitly)
197.El
198.It Va WITHOUT_BLACKLIST_SUPPORT
199Set to build some programs without
200.Xr libblacklist 3
201support, like
202.Xr fingerd 8 ,
203.Xr ftpd 8 ,
204and
205.Xr sshd 8 .
206.It Va WITHOUT_BLUETOOTH
207Set to not build Bluetooth related kernel modules, programs and libraries.
208.It Va WITHOUT_BOOT
209Set to not build the boot blocks and loader.
210.It Va WITHOUT_BOOTPARAMD
211Set to not build or install
212.Xr bootparamd 8 .
213.It Va WITHOUT_BOOTPD
214Set to not build or install
215.Xr bootpd 8 .
216.It Va WITHOUT_BSDINSTALL
217Set to not build
218.Xr bsdinstall 8 ,
219.Xr sade 8 ,
220and related programs.
221.It Va WITHOUT_BSD_CPIO
222Set to not build the BSD licensed version of cpio based on
223.Xr libarchive 3 .
224.It Va WITH_BSD_GREP
225Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
226.It Va WITHOUT_BSNMP
227Set to not build or install
228.Xr bsnmpd 1
229and related libraries and data files.
230.It Va WITHOUT_BZIP2
231Set to not build contributed bzip2 software as a part of the base system.
232.Bf -symbolic
233The option has no effect yet.
234.Ef
235When set, these options are also in effect:
236.Pp
237.Bl -inset -compact
238.It Va WITHOUT_BZIP2_SUPPORT
239(unless
240.Va WITH_BZIP2_SUPPORT
241is set explicitly)
242.El
243.It Va WITHOUT_BZIP2_SUPPORT
244Set to build some programs without optional bzip2 support.
245.It Va WITHOUT_CALENDAR
246Set to not build
247.Xr calendar 1 .
248.It Va WITHOUT_CAPSICUM
249Set to not build Capsicum support into system programs.
250When set, it enforces these options:
251.Pp
252.Bl -item -compact
253.It
254.Va WITHOUT_CASPER
255.El
256.It Va WITHOUT_CAROOT
257Set to not add the trusted certificates from the Mozilla NSS bundle to
258base.
259.It Va WITHOUT_CASPER
260Set to not build Casper program and related libraries.
261.It Va WITH_CCACHE_BUILD
262Set to use
263.Xr ccache 1
264for the build.
265No configuration is required except to install the
266.Sy devel/ccache
267package.
268When using with
269.Xr distcc 1 ,
270set
271.Sy CCACHE_PREFIX=/usr/local/bin/distcc .
272The default cache directory of
273.Pa $HOME/.ccache
274will be used, which can be overridden by setting
275.Sy CCACHE_DIR .
276The
277.Sy CCACHE_COMPILERCHECK
278option defaults to
279.Sy content
280when using the in-tree bootstrap compiler,
281and
282.Sy mtime
283when using an external compiler.
284The
285.Sy CCACHE_CPP2
286option is used for Clang but not GCC.
287.Pp
288Sharing a cache between multiple work directories requires using a layout
289similar to
290.Pa /some/prefix/src
291.Pa /some/prefix/obj
292and an environment such as:
293.Bd -literal -offset indent
294CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
295.Ed
296.Pp
297See
298.Xr ccache 1
299for more configuration options.
300.It Va WITHOUT_CCD
301Set to not build
302.Xr geom_ccd 4
303and related utilities.
304.It Va WITHOUT_CDDL
305Set to not build code licensed under Sun's CDDL.
306When set, it enforces these options:
307.Pp
308.Bl -item -compact
309.It
310.Va WITHOUT_CTF
311.It
312.Va WITHOUT_LOADER_ZFS
313.It
314.Va WITHOUT_ZFS
315.El
316.It Va WITHOUT_CLANG
317Set to not build the Clang C/C++ compiler during the regular phase of the build.
318When set, it enforces these options:
319.Pp
320.Bl -item -compact
321.It
322.Va WITHOUT_CLANG_EXTRAS
323.It
324.Va WITHOUT_CLANG_FULL
325.It
326.Va WITHOUT_LLVM_COV
327.El
328.It Va WITHOUT_CLANG_BOOTSTRAP
329Set to not build the Clang C/C++ compiler during the bootstrap phase of
330the build.
331To be able to build the system, either gcc or clang bootstrap must be
332enabled unless an alternate compiler is provided via XCC.
333.It Va WITH_CLANG_EXTRAS
334Set to build additional clang and llvm tools, such as bugpoint and
335clang-format.
336.It Va WITHOUT_CLANG_FULL
337Set to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
338the Clang C/C++ compiler.
339.It Va WITHOUT_CLANG_IS_CC
340Do not install links to the Clang C/C++ compiler as
341.Pa /usr/bin/cc ,
342.Pa /usr/bin/c++
343and
344.Pa /usr/bin/cpp .
345.It Va WITHOUT_CPP
346Set to not build
347.Xr cpp 1 .
348.It Va WITHOUT_CROSS_COMPILER
349Set to not build any cross compiler in the cross-tools stage of buildworld.
350When compiling a different version of
351.Fx
352than what is installed on the system, provide an alternate
353compiler with XCC to ensure success.
354When compiling with an identical version of
355.Fx
356to the host, this option may be safely used.
357This option may also be safe when the host version of
358.Fx
359is close to the sources being built, but all bets are off if there have
360been any changes to the toolchain between the versions.
361When set, it enforces these options:
362.Pp
363.Bl -item -compact
364.It
365.Va WITHOUT_CLANG_BOOTSTRAP
366.It
367.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
368.It
369.Va WITHOUT_LLD_BOOTSTRAP
370.El
371.It Va WITHOUT_CRYPT
372Set to not build any crypto code.
373When set, it enforces these options:
374.Pp
375.Bl -item -compact
376.It
377.Va WITHOUT_DMAGENT
378.It
379.Va WITHOUT_KERBEROS
380.It
381.Va WITHOUT_KERBEROS_SUPPORT
382.It
383.Va WITHOUT_LDNS
384.It
385.Va WITHOUT_LDNS_UTILS
386.It
387.Va WITHOUT_OPENSSH
388.It
389.Va WITHOUT_OPENSSL
390.It
391.Va WITHOUT_PKGBOOTSTRAP
392.It
393.Va WITHOUT_SVN
394.It
395.Va WITHOUT_SVNLITE
396.It
397.Va WITHOUT_UNBOUND
398.It
399.Va WITHOUT_WIRELESS
400.El
401.Pp
402When set, these options are also in effect:
403.Pp
404.Bl -inset -compact
405.It Va WITHOUT_GSSAPI
406(unless
407.Va WITH_GSSAPI
408is set explicitly)
409.El
410.It Va WITH_CTF
411Set to compile with CTF (Compact C Type Format) data.
412CTF data encapsulates a reduced form of debugging information
413similar to DWARF and the venerable stabs and is required for DTrace.
414.It Va WITHOUT_CUSE
415Set to not build CUSE-related programs and libraries.
416.It Va WITHOUT_CXGBETOOL
417Set to not build
418.Xr cxgbetool 8
419.Pp
420This is a default setting on
421arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
422.It Va WITH_CXGBETOOL
423Set to build
424.Xr cxgbetool 8
425.Pp
426This is a default setting on
427amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
428.It Va WITHOUT_CXX
429Set to not build
430.Xr c++ 1
431and related libraries.
432It will also prevent building of
433.Xr gperf 1
434and
435.Xr devd 8 .
436When set, it enforces these options:
437.Pp
438.Bl -item -compact
439.It
440.Va WITHOUT_CLANG
441.It
442.Va WITHOUT_CLANG_EXTRAS
443.It
444.Va WITHOUT_CLANG_FULL
445.It
446.Va WITHOUT_DTRACE_TESTS
447.It
448.Va WITHOUT_GOOGLETEST
449.It
450.Va WITHOUT_LLVM_COV
451.It
452.Va WITHOUT_TESTS
453.El
454.It Va WITHOUT_DEBUG_FILES
455Set to avoid building or installing standalone debug files for each
456executable binary and shared library.
457.It Va WITHOUT_DIALOG
458Set to not build
459.Xr dialog 1 ,
460.Xr dialog 3 ,
461.Xr dpv 1 ,
462and
463.Xr dpv 3 .
464When set, it enforces these options:
465.Pp
466.Bl -item -compact
467.It
468.Va WITHOUT_BSDINSTALL
469.El
470.It Va WITHOUT_DICT
471Set to not build the Webster dictionary files.
472.It Va WITH_DIRDEPS_BUILD
473This is an experimental build system.
474For details see
475http://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
476Build commands can be seen from the top-level with:
477.Dl make show-valid-targets
478The build is driven by dirdeps.mk using
479.Va DIRDEPS
480stored in
481Makefile.depend files found in each directory.
482.Pp
483The build can be started from anywhere, and behaves the same.
484The initial instance of
485.Xr make 1
486recursively reads
487.Va DIRDEPS
488from
489.Pa Makefile.depend ,
490computing a graph of tree dependencies from the current origin.
491Setting
492.Va NO_DIRDEPS
493skips checking dirdep dependencies and will only build in the current
494and child directories.
495.Va NO_DIRDEPS_BELOW
496skips building any dirdeps and only build the current directory.
497.Pp
498This also utilizes the
499.Va WITH_META_MODE
500logic for incremental builds.
501.Pp
502The build hides commands executed unless
503.Va NO_SILENT
504is defined.
505.Pp
506Note that there is currently no mass install feature for this.
507.Pp
508When set, it enforces these options:
509.Pp
510.Bl -item -compact
511.It
512.Va WITH_INSTALL_AS_USER
513.El
514.Pp
515When set, these options are also in effect:
516.Pp
517.Bl -inset -compact
518.It Va WITH_META_MODE
519(unless
520.Va WITHOUT_META_MODE
521is set explicitly)
522.It Va WITH_STAGING
523(unless
524.Va WITHOUT_STAGING
525is set explicitly)
526.It Va WITH_STAGING_MAN
527(unless
528.Va WITHOUT_STAGING_MAN
529is set explicitly)
530.It Va WITH_STAGING_PROG
531(unless
532.Va WITHOUT_STAGING_PROG
533is set explicitly)
534.It Va WITH_SYSROOT
535(unless
536.Va WITHOUT_SYSROOT
537is set explicitly)
538.El
539.Pp
540This must be set in the environment, make command line, or
541.Pa /etc/src-env.conf ,
542not
543.Pa /etc/src.conf .
544.It Va WITH_DIRDEPS_CACHE
545Cache result of dirdeps.mk which can save significant time
546for subsequent builds.
547Depends on
548.Va WITH_DIRDEPS_BUILD .
549.Pp
550This must be set in the environment, make command line, or
551.Pa /etc/src-env.conf ,
552not
553.Pa /etc/src.conf .
554.It Va WITHOUT_DMAGENT
555Set to not build dma Mail Transport Agent.
556.It Va WITHOUT_DOCCOMPRESS
557Set to not install compressed system documentation.
558Only the uncompressed version will be installed.
559.It Va WITH_DTRACE_TESTS
560Set to build and install the DTrace test suite in
561.Pa /usr/tests/cddl/usr.sbin/dtrace .
562This test suite is considered experimental on architectures other than
563amd64/amd64 and running it may cause system instability.
564.It Va WITHOUT_DYNAMICROOT
565Set this if you do not want to link
566.Pa /bin
567and
568.Pa /sbin
569dynamically.
570.It Va WITHOUT_EE
571Set to not build and install
572.Xr edit 1 ,
573.Xr ee 1 ,
574and related programs.
575.It Va WITHOUT_EFI
576Set not to build
577.Xr efivar 3
578and
579.Xr efivar 8 .
580.Pp
581This is a default setting on
582mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
583.It Va WITH_EFI
584Set to build
585.Xr efivar 3
586and
587.Xr efivar 8 .
588.Pp
589This is a default setting on
590amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64 and i386/i386.
591.It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
592Set to not build ELF Tool Chain tools
593(addr2line, nm, size, strings and strip)
594as part of the bootstrap process.
595.Bf -symbolic
596An alternate bootstrap tool chain must be provided.
597.Ef
598.It Va WITHOUT_EXAMPLES
599Set to avoid installing examples to
600.Pa /usr/share/examples/ .
601.It Va WITH_EXPERIMENTAL
602Set to include experimental features in the build.
603.It Va WITH_EXTRA_TCP_STACKS
604Set to build extra TCP stack modules.
605.It Va WITHOUT_FDT
606Set to not build Flattened Device Tree support as part of the base system.
607This includes the device tree compiler (dtc) and libfdt support library.
608.It Va WITHOUT_FILE
609Set to not build
610.Xr file 1
611and related programs.
612When set, it enforces these options:
613.Pp
614.Bl -item -compact
615.It
616.Va WITHOUT_SVNLITE
617.El
618.It Va WITHOUT_FINGER
619Set to not build or install
620.Xr finger 1
621and
622.Xr fingerd 8 .
623.It Va WITHOUT_FLOPPY
624Set to not build or install programs
625for operating floppy disk driver.
626.It Va WITHOUT_FMTREE
627Set to not build and install
628.Pa /usr/sbin/fmtree .
629.It Va WITHOUT_FORMAT_EXTENSIONS
630Set to not enable
631.Fl fformat-extensions
632when compiling the kernel.
633Also disables all format checking.
634.It Va WITHOUT_FORTH
635Set to build bootloaders without Forth support.
636.It Va WITHOUT_FP_LIBC
637Set to build
638.Nm libc
639without floating-point support.
640.It Va WITHOUT_FREEBSD_UPDATE
641Set to not build
642.Xr freebsd-update 8 .
643.It Va WITHOUT_FTP
644Set to not build or install
645.Xr ftp 1
646and
647.Xr ftpd 8 .
648.It Va WITHOUT_GAMES
649Set to not build games.
650.It Va WITHOUT_GDB
651Set to not build
652.Xr gdb 1 .
653.Pp
654This is a default setting on
655arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
656.It Va WITH_GDB
657Set to build
658.Xr gdb 1 .
659.Pp
660This is a default setting on
661amd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
662.It Va WITHOUT_GNU_DIFF
663Set to not build GNU
664.Xr diff3 1 .
665.It Va WITHOUT_GNU_GREP
666Set to not build GNU
667.Xr grep 1 .
668.It Va WITH_GNU_GREP_COMPAT
669Set this option to include GNU extensions in
670.Xr bsdgrep 1
671by linking against libgnuregex.
672.It Va WITHOUT_GOOGLETEST
673Set to neither build nor install
674.Lb libgmock ,
675.Lb libgtest ,
676and dependent tests.
677.Pp
678This is a default setting on
679mips/mips and mips/mips64.
680.It Va WITH_GOOGLETEST
681Set to build and install
682.Lb libgmock ,
683.Lb libgtest ,
684and dependent tests.
685.Pp
686This is a default setting on
687amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
688.It Va WITHOUT_GPIO
689Set to not build
690.Xr gpioctl 8
691as part of the base system.
692.It Va WITHOUT_GSSAPI
693Set to not build libgssapi.
694.It Va WITHOUT_HAST
695Set to not build
696.Xr hastd 8
697and related utilities.
698.It Va WITH_HESIOD
699Set to build Hesiod support.
700.It Va WITHOUT_HTML
701Set to not build HTML docs.
702.It Va WITHOUT_HYPERV
703Set to not build or install HyperV utilities.
704.Pp
705This is a default setting on
706arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
707.It Va WITH_HYPERV
708Set to build or install HyperV utilities.
709.Pp
710This is a default setting on
711amd64/amd64 and i386/i386.
712.It Va WITHOUT_ICONV
713Set to not build iconv as part of libc.
714.It Va WITHOUT_INCLUDES
715Set to not install header files.
716This option used to be spelled
717.Va NO_INCS .
718.Bf -symbolic
719The option does not work for build targets.
720.Ef
721.It Va WITHOUT_INET
722Set to not build programs and libraries related to IPv4 networking.
723When set, it enforces these options:
724.Pp
725.Bl -item -compact
726.It
727.Va WITHOUT_INET_SUPPORT
728.El
729.It Va WITHOUT_INET6
730Set to not build
731programs and libraries related to IPv6 networking.
732When set, it enforces these options:
733.Pp
734.Bl -item -compact
735.It
736.Va WITHOUT_INET6_SUPPORT
737.El
738.It Va WITHOUT_INET6_SUPPORT
739Set to build libraries, programs, and kernel modules without IPv6 support.
740.It Va WITHOUT_INETD
741Set to not build
742.Xr inetd 8 .
743.It Va WITHOUT_INET_SUPPORT
744Set to build libraries, programs, and kernel modules without IPv4 support.
745.It Va WITHOUT_INSTALLLIB
746Set this to not install optional libraries.
747For example, when creating a
748.Xr nanobsd 8
749image.
750.Bf -symbolic
751The option does not work for build targets.
752.Ef
753.It Va WITH_INSTALL_AS_USER
754Set to make install targets succeed for non-root users by installing
755files with owner and group attributes set to that of the user running
756the
757.Xr make 1
758command.
759The user still must set the
760.Va DESTDIR
761variable to point to a directory where the user has write permissions.
762.It Va WITHOUT_IPFILTER
763Set to not build IP Filter package.
764.It Va WITHOUT_IPFW
765Set to not build IPFW tools.
766.It Va WITHOUT_IPSEC_SUPPORT
767Set to not build the kernel with
768.Xr ipsec 4
769support.
770This option is needed for
771.Xr ipsec 4
772and
773.Xr tcpmd5 4 .
774.It Va WITHOUT_ISCSI
775Set to not build
776.Xr iscsid 8
777and related utilities.
778.It Va WITHOUT_JAIL
779Set to not build tools for the support of jails; e.g.,
780.Xr jail 8 .
781.It Va WITHOUT_KDUMP
782Set to not build
783.Xr kdump 1
784and
785.Xr truss 1 .
786.It Va WITHOUT_KERBEROS
787Set this to not build Kerberos 5 (KTH Heimdal).
788When set, these options are also in effect:
789.Pp
790.Bl -inset -compact
791.It Va WITHOUT_GSSAPI
792(unless
793.Va WITH_GSSAPI
794is set explicitly)
795.It Va WITHOUT_KERBEROS_SUPPORT
796(unless
797.Va WITH_KERBEROS_SUPPORT
798is set explicitly)
799.El
800.It Va WITHOUT_KERBEROS_SUPPORT
801Set to build some programs without Kerberos support, like
802.Xr ssh 1 ,
803.Xr telnet 1 ,
804.Xr sshd 8 ,
805and
806.Xr telnetd 8 .
807.It Va WITH_KERNEL_RETPOLINE
808Set to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
809build.
810.It Va WITHOUT_KERNEL_SYMBOLS
811Set to not install kernel symbol files.
812.Bf -symbolic
813This option is recommended for those people who have small root partitions.
814.Ef
815.It Va WITHOUT_KVM
816Set to not build the
817.Nm libkvm
818library as a part of the base system.
819.Bf -symbolic
820The option has no effect yet.
821.Ef
822When set, these options are also in effect:
823.Pp
824.Bl -inset -compact
825.It Va WITHOUT_KVM_SUPPORT
826(unless
827.Va WITH_KVM_SUPPORT
828is set explicitly)
829.El
830.It Va WITHOUT_KVM_SUPPORT
831Set to build some programs without optional
832.Nm libkvm
833support.
834.It Va WITHOUT_LDNS
835Setting this variable will prevent the LDNS library from being built.
836When set, it enforces these options:
837.Pp
838.Bl -item -compact
839.It
840.Va WITHOUT_LDNS_UTILS
841.It
842.Va WITHOUT_UNBOUND
843.El
844.It Va WITHOUT_LDNS_UTILS
845Setting this variable will prevent building the LDNS utilities
846.Xr drill 1
847and
848.Xr host 1 .
849.It Va WITHOUT_LEGACY_CONSOLE
850Set to not build programs that support a legacy PC console; e.g.,
851.Xr kbdcontrol 1
852and
853.Xr vidcontrol 1 .
854.It Va WITHOUT_LIB32
855On 64-bit platforms, set to not build 32-bit library set and a
856.Nm ld-elf32.so.1
857runtime linker.
858.Pp
859This is a default setting on
860arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
861.It Va WITHOUT_LIBCPLUSPLUS
862Set to avoid building libcxxrt and libc++.
863.It Va WITHOUT_LIBPTHREAD
864Set to not build the
865.Nm libpthread
866providing library,
867.Nm libthr .
868When set, it enforces these options:
869.Pp
870.Bl -item -compact
871.It
872.Va WITHOUT_LIBTHR
873.El
874.It Va WITH_LIBSOFT
875On armv6 only, set to enable soft float ABI compatibility libraries.
876This option is for transitioning to the new hard float ABI.
877.It Va WITHOUT_LIBTHR
878Set to not build the
879.Nm libthr
880(1:1 threading)
881library.
882.It Va WITHOUT_LLD
883Set to not build LLVM's lld linker.
884.It Va WITHOUT_LLDB
885Set to not build the LLDB debugger.
886.Pp
887This is a default setting on
888arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
889.It Va WITH_LLDB
890Set to build the LLDB debugger.
891.Pp
892This is a default setting on
893amd64/amd64, arm64/aarch64 and i386/i386.
894.It Va WITHOUT_LLD_BOOTSTRAP
895Set to not build the LLD linker during the bootstrap phase of
896the build.
897To be able to build the system, either Binutils or LLD bootstrap must be
898enabled unless an alternate linker is provided via XLD.
899.It Va WITHOUT_LLD_IS_LD
900Set to use GNU binutils ld as the system linker, instead of LLVM's LLD.
901.It Va WITHOUT_LLVM_ASSERTIONS
902Set to disable debugging assertions in LLVM.
903.It Va WITHOUT_LLVM_COV
904Set to not build the
905.Xr llvm-cov 1
906tool.
907.It Va WITHOUT_LLVM_TARGET_AARCH64
908Set to not build LLVM target support for AArch64.
909The
910.Va LLVM_TARGET_ALL
911option should be used rather than this in most cases.
912.It Va WITHOUT_LLVM_TARGET_ALL
913Set to only build the required LLVM target support.
914This option is preferred to specific target support options.
915When set, these options are also in effect:
916.Pp
917.Bl -inset -compact
918.It Va WITHOUT_LLVM_TARGET_AARCH64
919(unless
920.Va WITH_LLVM_TARGET_AARCH64
921is set explicitly)
922.It Va WITHOUT_LLVM_TARGET_ARM
923(unless
924.Va WITH_LLVM_TARGET_ARM
925is set explicitly)
926.It Va WITHOUT_LLVM_TARGET_MIPS
927(unless
928.Va WITH_LLVM_TARGET_MIPS
929is set explicitly)
930.It Va WITHOUT_LLVM_TARGET_POWERPC
931(unless
932.Va WITH_LLVM_TARGET_POWERPC
933is set explicitly)
934.It Va WITHOUT_LLVM_TARGET_RISCV
935(unless
936.Va WITH_LLVM_TARGET_RISCV
937is set explicitly)
938.El
939.It Va WITHOUT_LLVM_TARGET_ARM
940Set to not build LLVM target support for ARM.
941The
942.Va LLVM_TARGET_ALL
943option should be used rather than this in most cases.
944.It Va WITH_LLVM_TARGET_BPF
945Set to build LLVM target support for BPF.
946The
947.Va LLVM_TARGET_ALL
948option should be used rather than this in most cases.
949.It Va WITHOUT_LLVM_TARGET_MIPS
950Set to not build LLVM target support for MIPS.
951The
952.Va LLVM_TARGET_ALL
953option should be used rather than this in most cases.
954.It Va WITHOUT_LLVM_TARGET_POWERPC
955Set to not build LLVM target support for PowerPC.
956The
957.Va LLVM_TARGET_ALL
958option should be used rather than this in most cases.
959.It Va WITHOUT_LLVM_TARGET_RISCV
960Set to not build LLVM target support for RISC-V.
961The
962.Va LLVM_TARGET_ALL
963option should be used rather than this in most cases.
964.It Va WITHOUT_LLVM_TARGET_X86
965Set to not build LLVM target support for X86.
966The
967.Va LLVM_TARGET_ALL
968option should be used rather than this in most cases.
969.It Va WITH_LOADER_EFI_SECUREBOOT
970Enable building
971.Xr loader 8
972with support for verification based on certificates obtained from UEFI.
973.Pp
974.It Va WITH_LOADER_FIREWIRE
975Enable firewire support in /boot/loader on x86. This option is a nop
976on all other platforms.
977.It Va WITH_LOADER_FORCE_LE
978Set to force the powerpc boot loader to launch the kernel in little
979endian mode.
980.It Va WITHOUT_LOADER_GELI
981Disable inclusion of GELI crypto support in the boot chain binaries.
982.Pp
983This is a default setting on
984powerpc/powerpc and powerpc/powerpc64.
985.It Va WITH_LOADER_GELI
986Set to build GELI bootloader support.
987.Pp
988This is a default setting on
989amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
990.It Va WITHOUT_LOADER_LUA
991Set to not build LUA bindings for the boot loader.
992.Pp
993This is a default setting on
994powerpc/powerpc and powerpc/powerpc64.
995.It Va WITH_LOADER_LUA
996Set to build LUA bindings for the boot loader.
997.Pp
998This is a default setting on
999amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1000.It Va WITHOUT_LOADER_OFW
1001Disable building of openfirmware bootloader components.
1002.Pp
1003This is a default setting on
1004amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1005.It Va WITH_LOADER_OFW
1006Set to build openfirmware bootloader components.
1007.Pp
1008This is a default setting on
1009powerpc/powerpc and powerpc/powerpc64.
1010.It Va WITHOUT_LOADER_UBOOT
1011Disable building of ubldr.
1012.Pp
1013This is a default setting on
1014amd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1015.It Va WITH_LOADER_UBOOT
1016Set to build ubldr.
1017.Pp
1018This is a default setting on
1019arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
1020.It Va WITH_LOADER_VERBOSE
1021Set to build with extra verbose debugging in the loader.
1022May explode already nearly too large loader over the limit.
1023Use with care.
1024
1025.It Va WITH_LOADER_VERIEXEC
1026Enable building
1027.Xr loader 8
1028with support for verification similar to Verified Exec.
1029.Pp
1030Depends on
1031.Va WITH_BEARSSL .
1032When set, these options are also in effect:
1033.Pp
1034.Bl -inset -compact
1035.It Va WITH_LOADER_EFI_SECUREBOOT
1036(unless
1037.Va WITHOUT_LOADER_EFI_SECUREBOOT
1038is set explicitly)
1039.It Va WITH_LOADER_VERIEXEC_VECTX
1040(unless
1041.Va WITHOUT_LOADER_VERIEXEC_VECTX
1042is set explicitly)
1043.El
1044.It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
1045Enable building
1046.Xr loader 8
1047with support to pass a verified manifest to the kernel.
1048The kernel has to be built with a module to parse the manifest.
1049.Pp
1050Depends on
1051.Va WITH_LOADER_VERIEXEC .
1052.It Va WITHOUT_LOADER_ZFS
1053Set to not build ZFS file system boot loader support.
1054.It Va WITHOUT_LOCALES
1055Set to not build localization files; see
1056.Xr locale 1 .
1057.It Va WITHOUT_LOCATE
1058Set to not build
1059.Xr locate 1
1060and related programs.
1061.It Va WITHOUT_LPR
1062Set to not build
1063.Xr lpr 1
1064and related programs.
1065.It Va WITHOUT_LS_COLORS
1066Set to build
1067.Xr ls 1
1068without support for colors to distinguish file types.
1069.It Va WITHOUT_LZMA_SUPPORT
1070Set to build some programs without optional lzma compression support.
1071.It Va WITHOUT_MAIL
1072Set to not build any mail support (MUA or MTA).
1073When set, it enforces these options:
1074.Pp
1075.Bl -item -compact
1076.It
1077.Va WITHOUT_DMAGENT
1078.It
1079.Va WITHOUT_MAILWRAPPER
1080.It
1081.Va WITHOUT_SENDMAIL
1082.El
1083.It Va WITHOUT_MAILWRAPPER
1084Set to not build the
1085.Xr mailwrapper 8
1086MTA selector.
1087.It Va WITHOUT_MAKE
1088Set to not install
1089.Xr make 1
1090and related support files.
1091.It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
1092Set to not execute
1093.Dq Li "make check"
1094in limited sandbox mode.
1095This option should be paired with
1096.Va WITH_INSTALL_AS_USER
1097if executed as an unprivileged user.
1098See
1099.Xr tests 7
1100for more details.
1101.It Va WITHOUT_MAN
1102Set to not build manual pages.
1103When set, these options are also in effect:
1104.Pp
1105.Bl -inset -compact
1106.It Va WITHOUT_MAN_UTILS
1107(unless
1108.Va WITH_MAN_UTILS
1109is set explicitly)
1110.El
1111.It Va WITHOUT_MANCOMPRESS
1112Set to not to install compressed man pages.
1113Only the uncompressed versions will be installed.
1114.It Va WITHOUT_MAN_UTILS
1115Set to not build utilities for manual pages,
1116.Xr apropos 1 ,
1117.Xr makewhatis 1 ,
1118.Xr man 1 ,
1119.Xr whatis 1 ,
1120.Xr manctl 8 ,
1121and related support files.
1122.It Va WITH_META_MODE
1123Create
1124.Xr make 1
1125meta files when building, which can provide a reliable incremental build when
1126using
1127.Xr filemon 4 .
1128The meta file is created in OBJDIR as
1129.Pa target.meta .
1130These meta files track the command that was executed, its output, and the
1131current directory.
1132The
1133.Xr filemon 4
1134module is required unless
1135.Va NO_FILEMON
1136is defined.
1137When the module is loaded, any files used by the commands executed are
1138tracked as dependencies for the target in its meta file.
1139The target is considered out-of-date and rebuilt if any of these
1140conditions are true compared to the last build:
1141.Bl -bullet -compact
1142.It
1143The command to execute changes.
1144.It
1145The current working directory changes.
1146.It
1147The target's meta file is missing.
1148.It
1149The target's meta file is missing filemon data when filemon is loaded
1150and a previous run did not have it loaded.
1151.It
1152[requires
1153.Xr filemon 4 ]
1154Files read, executed or linked to are newer than the target.
1155.It
1156[requires
1157.Xr filemon 4 ]
1158Files read, written, executed or linked are missing.
1159.El
1160The meta files can also be useful for debugging.
1161.Pp
1162The build hides commands that are executed unless
1163.Va NO_SILENT
1164is defined.
1165Errors cause
1166.Xr make 1
1167to show some of its environment for further debugging.
1168.Pp
1169The build operates as it normally would otherwise.
1170This option originally invoked a different build system but that was renamed
1171to
1172.Va WITH_DIRDEPS_BUILD .
1173.Pp
1174This must be set in the environment, make command line, or
1175.Pa /etc/src-env.conf ,
1176not
1177.Pa /etc/src.conf .
1178.It Va WITHOUT_MLX5TOOL
1179Set to not build
1180.Xr mlx5tool 8
1181.Pp
1182This is a default setting on
1183arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1184.It Va WITH_MLX5TOOL
1185Set to build
1186.Xr mlx5tool 8
1187.Pp
1188This is a default setting on
1189amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1190.It Va WITHOUT_NDIS
1191Set to not build programs and libraries
1192related to NDIS emulation support.
1193.It Va WITHOUT_NETCAT
1194Set to not build
1195.Xr nc 1
1196utility.
1197.It Va WITHOUT_NETGRAPH
1198Set to not build applications to support
1199.Xr netgraph 4 .
1200When set, it enforces these options:
1201.Pp
1202.Bl -item -compact
1203.It
1204.Va WITHOUT_ATM
1205.It
1206.Va WITHOUT_BLUETOOTH
1207.El
1208.Pp
1209When set, these options are also in effect:
1210.Pp
1211.Bl -inset -compact
1212.It Va WITHOUT_NETGRAPH_SUPPORT
1213(unless
1214.Va WITH_NETGRAPH_SUPPORT
1215is set explicitly)
1216.El
1217.It Va WITHOUT_NETGRAPH_SUPPORT
1218Set to build libraries, programs, and kernel modules without netgraph support.
1219.It Va WITHOUT_NIS
1220Set to not build
1221.Xr NIS 8
1222support and related programs.
1223If set, you might need to adopt your
1224.Xr nsswitch.conf 5
1225and remove
1226.Sq nis
1227entries.
1228.It Va WITHOUT_NLS
1229Set to not build NLS catalogs.
1230When set, it enforces these options:
1231.Pp
1232.Bl -item -compact
1233.It
1234.Va WITHOUT_NLS_CATALOGS
1235.El
1236.It Va WITHOUT_NLS_CATALOGS
1237Set to not build NLS catalog support for
1238.Xr csh 1 .
1239.It Va WITHOUT_NS_CACHING
1240Set to disable name caching in the
1241.Pa nsswitch
1242subsystem.
1243The generic caching daemon,
1244.Xr nscd 8 ,
1245will not be built either if this option is set.
1246.It Va WITHOUT_NTP
1247Set to not build
1248.Xr ntpd 8
1249and related programs.
1250.It Va WITHOUT_NVME
1251Set to not build nvme related tools and kernel modules.
1252.Pp
1253This is a default setting on
1254arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1255.It Va WITH_NVME
1256Set to build nvme related tools and kernel modules.
1257
1258.Pp
1259This is a default setting on
1260amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1261.It Va WITH_OFED
1262Set to build the
1263.Dq "OpenFabrics Enterprise Distribution"
1264Infiniband software stack.
1265.It Va WITH_OFED_EXTRA
1266Set to build the non-essential components of the
1267.Dq "OpenFabrics Enterprise Distribution"
1268Infiniband software stack, mostly examples.
1269.It Va WITH_OPENLDAP
1270Enable building openldap support for kerberos.
1271.It Va WITHOUT_OPENMP
1272Set to not build LLVM's OpenMP runtime.
1273.Pp
1274This is a default setting on
1275arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1276.It Va WITH_OPENMP
1277Set to build LLVM's OpenMP runtime.
1278.Pp
1279This is a default setting on
1280amd64/amd64, i386/i386 and powerpc/powerpc64.
1281.It Va WITHOUT_OPENSSH
1282Set to not build OpenSSH.
1283.It Va WITHOUT_OPENSSL
1284Set to not build OpenSSL.
1285When set, it enforces these options:
1286.Pp
1287.Bl -item -compact
1288.It
1289.Va WITHOUT_DMAGENT
1290.It
1291.Va WITHOUT_KERBEROS
1292.It
1293.Va WITHOUT_KERBEROS_SUPPORT
1294.It
1295.Va WITHOUT_LDNS
1296.It
1297.Va WITHOUT_LDNS_UTILS
1298.It
1299.Va WITHOUT_OPENSSH
1300.It
1301.Va WITHOUT_PKGBOOTSTRAP
1302.It
1303.Va WITHOUT_SVN
1304.It
1305.Va WITHOUT_SVNLITE
1306.It
1307.Va WITHOUT_UNBOUND
1308.It
1309.Va WITHOUT_WIRELESS
1310.El
1311.Pp
1312When set, these options are also in effect:
1313.Pp
1314.Bl -inset -compact
1315.It Va WITHOUT_GSSAPI
1316(unless
1317.Va WITH_GSSAPI
1318is set explicitly)
1319.El
1320.It Va WITHOUT_PAM
1321Set to not build PAM library and modules.
1322.Bf -symbolic
1323This option is deprecated and does nothing.
1324.Ef
1325When set, these options are also in effect:
1326.Pp
1327.Bl -inset -compact
1328.It Va WITHOUT_PAM_SUPPORT
1329(unless
1330.Va WITH_PAM_SUPPORT
1331is set explicitly)
1332.El
1333.It Va WITHOUT_PAM_SUPPORT
1334Set to build some programs without PAM support, particularly
1335.Xr ftpd 8
1336and
1337.Xr ppp 8 .
1338.It Va WITHOUT_PF
1339Set to not build PF firewall package.
1340When set, it enforces these options:
1341.Pp
1342.Bl -item -compact
1343.It
1344.Va WITHOUT_AUTHPF
1345.El
1346.It Va WITH_PIE
1347Build dynamically linked binaries as
1348Position-Independent Executable (PIE).
1349.It Va WITHOUT_PKGBOOTSTRAP
1350Set to not build
1351.Xr pkg 7
1352bootstrap tool.
1353.It Va WITHOUT_PMC
1354Set to not build
1355.Xr pmccontrol 8
1356and related programs.
1357.It Va WITHOUT_PORTSNAP
1358Set to not build or install
1359.Xr portsnap 8
1360and related files.
1361When set, it enforces these options:
1362.Pp
1363.Bl -item -compact
1364.It
1365.Va WITHOUT_FREEBSD_UPDATE
1366.El
1367.It Va WITHOUT_PPP
1368Set to not build
1369.Xr ppp 8
1370and related programs.
1371.It Va WITHOUT_PROFILE
1372Set to not build profiled libraries for use with
1373.Xr gprof 8 .
1374.Pp
1375This is a default setting on
1376mips/mips64.
1377.It Va WITH_PROFILE
1378Set to build profiled libraries for use with
1379.Xr gprof 8 .
1380.Pp
1381This is a default setting on
1382amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1383.It Va WITHOUT_QUOTAS
1384Set to not build
1385.Xr quota 1
1386and related programs.
1387.It Va WITHOUT_RADIUS_SUPPORT
1388Set to not build radius support into various applications, like
1389.Xr pam_radius 8
1390and
1391.Xr ppp 8 .
1392.It Va WITH_RATELIMIT
1393Set to build the system with rate limit support.
1394.Pp
1395This makes
1396.Dv SO_MAX_PACING_RATE
1397effective in
1398.Xr getsockopt 2 ,
1399and
1400.Ar txrlimit
1401support in
1402.Xr ifconfig 8 ,
1403by proxy.
1404.It Va WITHOUT_RBOOTD
1405Set to not build or install
1406.Xr rbootd 8 .
1407.It Va WITH_REPRODUCIBLE_BUILD
1408Set to exclude build metadata (such as the build time, user, or host)
1409from the kernel, boot loaders, and uname output, so that builds produce
1410bit-for-bit identical output.
1411.It Va WITHOUT_RESCUE
1412Set to not build
1413.Xr rescue 8 .
1414.It Va WITH_RETPOLINE
1415Set to build the base system with the retpoline speculative execution
1416vulnerability mitigation for CVE-2017-5715.
1417.It Va WITHOUT_ROUTED
1418Set to not build
1419.Xr routed 8
1420utility.
1421.It Va WITH_RPCBIND_WARMSTART_SUPPORT
1422Set to build
1423.Xr rpcbind 8
1424with warmstart support.
1425.It Va WITHOUT_SENDMAIL
1426Set to not build
1427.Xr sendmail 8
1428and related programs.
1429.It Va WITHOUT_SERVICESDB
1430Set to not install
1431.Pa /var/db/services.db .
1432.It Va WITHOUT_SETUID_LOGIN
1433Set this to disable the installation of
1434.Xr login 1
1435as a set-user-ID root program.
1436.It Va WITHOUT_SHAREDOCS
1437Set to not build the
1438.Bx 4.4
1439legacy docs.
1440.It Va WITHOUT_SHARED_TOOLCHAIN
1441Set to build the toolchain binaries as statically linked executables.
1442The set includes
1443.Xr cc 1 ,
1444.Xr make 1
1445and necessary utilities like assembler, linker and library archive manager.
1446.It Va WITH_SORT_THREADS
1447Set to enable threads in
1448.Xr sort 1 .
1449.It Va WITHOUT_SOURCELESS
1450Set to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1451When set, it enforces these options:
1452.Pp
1453.Bl -item -compact
1454.It
1455.Va WITHOUT_SOURCELESS_HOST
1456.It
1457.Va WITHOUT_SOURCELESS_UCODE
1458.El
1459.It Va WITHOUT_SOURCELESS_HOST
1460Set to not build kernel modules that include sourceless native code for host CPU.
1461.It Va WITHOUT_SOURCELESS_UCODE
1462Set to not build kernel modules that include sourceless microcode.
1463.It Va WITHOUT_SSP
1464Set to not build world with propolice stack smashing protection.
1465.Pp
1466This is a default setting on
1467mips/mips and mips/mips64.
1468.It Va WITH_SSP
1469Set to build world with propolice stack smashing protection.
1470.Pp
1471This is a default setting on
1472amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1473.It Va WITH_STAGING
1474Enable staging of files to a stage tree.
1475This can be best thought of as auto-install to
1476.Va DESTDIR
1477with some extra meta data to ensure dependencies can be tracked.
1478Depends on
1479.Va WITH_DIRDEPS_BUILD .
1480When set, these options are also in effect:
1481.Pp
1482.Bl -inset -compact
1483.It Va WITH_STAGING_MAN
1484(unless
1485.Va WITHOUT_STAGING_MAN
1486is set explicitly)
1487.It Va WITH_STAGING_PROG
1488(unless
1489.Va WITHOUT_STAGING_PROG
1490is set explicitly)
1491.El
1492.Pp
1493This must be set in the environment, make command line, or
1494.Pa /etc/src-env.conf ,
1495not
1496.Pa /etc/src.conf .
1497.It Va WITH_STAGING_MAN
1498Enable staging of man pages to stage tree.
1499.It Va WITH_STAGING_PROG
1500Enable staging of PROGs to stage tree.
1501.It Va WITH_STALE_STAGED
1502Check staged files are not stale.
1503.It Va WITHOUT_STATS
1504Set to neither build nor install
1505.Lb libstats
1506and dependent binaries.
1507.It Va WITH_SVN
1508Set to install
1509.Xr svnlite 1
1510as
1511.Xr svn 1 .
1512.It Va WITHOUT_SVNLITE
1513Set to not build
1514.Xr svnlite 1
1515and related programs.
1516.It Va WITHOUT_SYSCONS
1517Set to not build
1518.Xr syscons 4
1519support files such as keyboard maps, fonts, and screen output maps.
1520.It Va WITH_SYSROOT
1521Enable use of sysroot during build.
1522Depends on
1523.Va WITH_DIRDEPS_BUILD .
1524.Pp
1525This must be set in the environment, make command line, or
1526.Pa /etc/src-env.conf ,
1527not
1528.Pa /etc/src.conf .
1529.It Va WITHOUT_SYSTEM_COMPILER
1530Set to not opportunistically skip building a cross-compiler during the
1531bootstrap phase of the build.
1532Normally, if the currently installed compiler matches the planned bootstrap
1533compiler type and revision, then it will not be built.
1534This does not prevent a compiler from being built for installation though,
1535only for building one for the build itself.
1536The
1537.Va WITHOUT_CLANG
1538option controls that.
1539.It Va WITHOUT_SYSTEM_LINKER
1540Set to not opportunistically skip building a cross-linker during the
1541bootstrap phase of the build.
1542Normally, if the currently installed linker matches the planned bootstrap
1543linker type and revision, then it will not be built.
1544This does not prevent a linker from being built for installation though,
1545only for building one for the build itself.
1546The
1547.Va WITHOUT_LLD
1548option controls that.
1549.Pp
1550This option is only relevant when
1551.Va WITH_LLD_BOOTSTRAP
1552is set.
1553.It Va WITHOUT_TALK
1554Set to not build or install
1555.Xr talk 1
1556and
1557.Xr talkd 8 .
1558.It Va WITHOUT_TCP_WRAPPERS
1559Set to not build or install
1560.Xr tcpd 8 ,
1561and related utilities.
1562.It Va WITHOUT_TCSH
1563Set to not build and install
1564.Pa /bin/csh
1565(which is
1566.Xr tcsh 1 ) .
1567.It Va WITHOUT_TELNET
1568Set to not build
1569.Xr telnet 1
1570and related programs.
1571.It Va WITHOUT_TESTS
1572Set to not build nor install the
1573.Fx
1574Test Suite in
1575.Pa /usr/tests/ .
1576See
1577.Xr tests 7
1578for more details.
1579This also disables the build of all test-related dependencies, including ATF.
1580When set, it enforces these options:
1581.Pp
1582.Bl -item -compact
1583.It
1584.Va WITHOUT_DTRACE_TESTS
1585.El
1586.Pp
1587When set, these options are also in effect:
1588.Pp
1589.Bl -inset -compact
1590.It Va WITHOUT_GOOGLETEST
1591(unless
1592.Va WITH_GOOGLETEST
1593is set explicitly)
1594.It Va WITHOUT_TESTS_SUPPORT
1595(unless
1596.Va WITH_TESTS_SUPPORT
1597is set explicitly)
1598.El
1599.It Va WITHOUT_TESTS_SUPPORT
1600Set to disables the build of all test-related dependencies, including ATF.
1601When set, it enforces these options:
1602.Pp
1603.Bl -item -compact
1604.It
1605.Va WITHOUT_GOOGLETEST
1606.El
1607.It Va WITHOUT_TEXTPROC
1608Set to not build
1609programs used for text processing.
1610.It Va WITHOUT_TFTP
1611Set to not build or install
1612.Xr tftp 1
1613and
1614.Xr tftpd 8 .
1615.It Va WITHOUT_TOOLCHAIN
1616Set to not install header or
1617programs used for program development,
1618compilers, debuggers etc.
1619When set, it enforces these options:
1620.Pp
1621.Bl -item -compact
1622.It
1623.Va WITHOUT_CLANG
1624.It
1625.Va WITHOUT_CLANG_EXTRAS
1626.It
1627.Va WITHOUT_CLANG_FULL
1628.It
1629.Va WITHOUT_GDB
1630.It
1631.Va WITHOUT_INCLUDES
1632.It
1633.Va WITHOUT_LLD
1634.It
1635.Va WITHOUT_LLDB
1636.It
1637.Va WITHOUT_LLVM_COV
1638.El
1639.It Va WITHOUT_UNBOUND
1640Set to not build
1641.Xr unbound 8
1642and related programs.
1643.It Va WITHOUT_UNIFIED_OBJDIR
1644Set to use the historical object directory format for
1645.Xr build 7
1646targets.
1647For native-builds and builds done directly in sub-directories the format of
1648.Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1649is used,
1650while for cross-builds
1651.Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1652is used.
1653.Pp
1654This option is transitional and will be removed before the 12.0 release,
1655at which time
1656.va WITH_UNIFIED_OBJDIR
1657will be enabled permanently.
1658.Pp
1659This must be set in the environment, make command line, or
1660.Pa /etc/src-env.conf ,
1661not
1662.Pa /etc/src.conf .
1663.It Va WITHOUT_USB
1664Set to not build USB-related programs and libraries.
1665.It Va WITHOUT_USB_GADGET_EXAMPLES
1666Set to not build USB gadget kernel modules.
1667.It Va WITHOUT_UTMPX
1668Set to not build user accounting tools such as
1669.Xr last 1 ,
1670.Xr users 1 ,
1671.Xr who 1 ,
1672.Xr ac 8 ,
1673.Xr lastlogin 8
1674and
1675.Xr utx 8 .
1676.It Va WITH_VERIEXEC
1677Enable building
1678.Xr veriexec 8
1679which loads the contents of verified manifests into the kernel
1680for use by
1681.Xr mac_veriexec 4
1682.Pp
1683Depends on
1684.Va WITH_BEARSSL .
1685.It Va WITHOUT_VI
1686Set to not build and install vi, view, ex and related programs.
1687.It Va WITHOUT_VT
1688Set to not build
1689.Xr vt 4
1690support files (fonts and keymaps).
1691.It Va WITHOUT_WARNS
1692Set this to not add warning flags to the compiler invocations.
1693Useful as a temporary workaround when code enters the tree
1694which triggers warnings in environments that differ from the
1695original developer.
1696.It Va WITHOUT_WIRELESS
1697Set to not build programs used for 802.11 wireless networks; especially
1698.Xr wpa_supplicant 8
1699and
1700.Xr hostapd 8 .
1701When set, these options are also in effect:
1702.Pp
1703.Bl -inset -compact
1704.It Va WITHOUT_WIRELESS_SUPPORT
1705(unless
1706.Va WITH_WIRELESS_SUPPORT
1707is set explicitly)
1708.El
1709.It Va WITHOUT_WIRELESS_SUPPORT
1710Set to build libraries, programs, and kernel modules without
1711802.11 wireless support.
1712.It Va WITHOUT_WPA_SUPPLICANT_EAPOL
1713Build
1714.Xr wpa_supplicant 8
1715without support for the IEEE 802.1X protocol and without
1716support for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
1717protocols (usable only via 802.1X).
1718.It Va WITHOUT_ZFS
1719Set to not build ZFS file system kernel module, libraries, and user commands.
1720.It Va WITHOUT_ZONEINFO
1721Set to not build the timezone database.
1722When set, it enforces these options:
1723.Pp
1724.Bl -item -compact
1725.It
1726.Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
1727.El
1728.It Va WITH_ZONEINFO_LEAPSECONDS_SUPPORT
1729Set to build leapsecond information in to the timezone database.
1730.El
1731.Sh FILES
1732.Bl -tag -compact -width Pa
1733.It Pa /etc/src.conf
1734.It Pa /etc/src-env.conf
1735.It Pa /usr/share/mk/bsd.own.mk
1736.El
1737.Sh SEE ALSO
1738.Xr make 1 ,
1739.Xr make.conf 5 ,
1740.Xr build 7 ,
1741.Xr ports 7
1742.Sh HISTORY
1743The
1744.Nm
1745file appeared in
1746.Fx 7.0 .
1747.Sh AUTHORS
1748This manual page was autogenerated by
1749.An tools/build/options/makeman .
1750