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