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