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