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