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