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