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