xref: /freebsd/share/man/man5/src.conf.5 (revision 652a9748855320619e075c4e83aef2f5294412d2)
1.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
2.\" $FreeBSD$
3.Dd March 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_BIND_NOW
174Build all binaries with the
175.Dv DF_BIND_NOW
176flag set to indicate that the run-time loader should perform all relocation
177processing at process startup rather than on demand.
178.It Va WITHOUT_BINUTILS
179Do not build or install GNU
180.Xr as 1 and
181.Xr objdump 1
182as part
183of the normal system build.
184.Pp
185This is a default setting on
186arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
187.It Va WITH_BINUTILS
188Build and install GNU
189.Xr as 1
190on i386 and amd64,
191and
192.Xr objdump 1
193as part of the normal system build.
194.Pp
195This is a default setting on
196amd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
197.It Va WITHOUT_BINUTILS_BOOTSTRAP
198Do not build GNU binutils
199as part of the bootstrap process.
200.Pp
201This is a default setting on
202arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
203.It Va WITH_BINUTILS_BOOTSTRAP
204Build GNU binutils
205as part of the bootstrap process.
206.Pp
207This is a default setting on
208amd64/amd64 and i386/i386.
209.It Va WITHOUT_BLACKLIST
210Set this if you do not want to build
211.Xr blacklistd 8
212and
213.Xr blacklistctl 8 .
214When set, these options are also in effect:
215.Pp
216.Bl -inset -compact
217.It Va WITHOUT_BLACKLIST_SUPPORT
218(unless
219.Va WITH_BLACKLIST_SUPPORT
220is set explicitly)
221.El
222.It Va WITHOUT_BLACKLIST_SUPPORT
223Set to build some programs without
224.Xr libblacklist 3
225support, like
226.Xr fingerd 8 ,
227.Xr ftpd 8 ,
228and
229.Xr sshd 8 .
230.It Va WITHOUT_BLUETOOTH
231Set to not build Bluetooth related kernel modules, programs and libraries.
232.It Va WITHOUT_BOOT
233Set to not build the boot blocks and loader.
234.It Va WITHOUT_BOOTPARAMD
235Set to not build or install
236.Xr bootparamd 8 .
237.It Va WITHOUT_BOOTPD
238Set to not build or install
239.Xr bootpd 8 .
240.It Va WITHOUT_BSDINSTALL
241Set to not build
242.Xr bsdinstall 8 ,
243.Xr sade 8 ,
244and related programs.
245.It Va WITHOUT_BSD_CPIO
246Set to not build the BSD licensed version of cpio based on
247.Xr libarchive 3 .
248.It Va WITH_BSD_GREP
249Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
250.It Va WITHOUT_BSNMP
251Set to not build or install
252.Xr bsnmpd 1
253and related libraries and data files.
254.It Va WITHOUT_BZIP2
255Set to not build contributed bzip2 software as a part of the base system.
256.Bf -symbolic
257The option has no effect yet.
258.Ef
259When set, these options are also in effect:
260.Pp
261.Bl -inset -compact
262.It Va WITHOUT_BZIP2_SUPPORT
263(unless
264.Va WITH_BZIP2_SUPPORT
265is set explicitly)
266.El
267.It Va WITHOUT_BZIP2_SUPPORT
268Set to build some programs without optional bzip2 support.
269.It Va WITHOUT_CALENDAR
270Set to not build
271.Xr calendar 1 .
272.It Va WITHOUT_CAPSICUM
273Set to not build Capsicum support into system programs.
274When set, it enforces these options:
275.Pp
276.Bl -item -compact
277.It
278.Va WITHOUT_CASPER
279.El
280.It Va WITHOUT_CAROOT
281Set to not add the trusted certificates from the Mozilla NSS bundle to
282base.
283.It Va WITHOUT_CASPER
284Set to not build Casper program and related libraries.
285.It Va WITH_CCACHE_BUILD
286Set to use
287.Xr ccache 1
288for the build.
289No configuration is required except to install the
290.Sy devel/ccache
291package.
292When using with
293.Xr distcc 1 ,
294set
295.Sy CCACHE_PREFIX=/usr/local/bin/distcc .
296The default cache directory of
297.Pa $HOME/.ccache
298will be used, which can be overridden by setting
299.Sy CCACHE_DIR .
300The
301.Sy CCACHE_COMPILERCHECK
302option defaults to
303.Sy content
304when using the in-tree bootstrap compiler,
305and
306.Sy mtime
307when using an external compiler.
308The
309.Sy CCACHE_CPP2
310option is used for Clang but not GCC.
311.Pp
312Sharing a cache between multiple work directories requires using a layout
313similar to
314.Pa /some/prefix/src
315.Pa /some/prefix/obj
316and an environment such as:
317.Bd -literal -offset indent
318CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
319.Ed
320.Pp
321See
322.Xr ccache 1
323for more configuration options.
324.It Va WITHOUT_CCD
325Set to not build
326.Xr geom_ccd 4
327and related utilities.
328.It Va WITHOUT_CDDL
329Set to not build code licensed under Sun's CDDL.
330When set, it enforces these options:
331.Pp
332.Bl -item -compact
333.It
334.Va WITHOUT_CTF
335.It
336.Va WITHOUT_LOADER_ZFS
337.It
338.Va WITHOUT_ZFS
339.El
340.It Va WITHOUT_CLANG
341Set to not build the Clang C/C++ compiler during the regular phase of the build.
342When set, it enforces these options:
343.Pp
344.Bl -item -compact
345.It
346.Va WITHOUT_CLANG_EXTRAS
347.It
348.Va WITHOUT_CLANG_FULL
349.It
350.Va WITHOUT_LLVM_COV
351.El
352.It Va WITHOUT_CLANG_BOOTSTRAP
353Set to not build the Clang C/C++ compiler during the bootstrap phase of
354the build.
355To be able to build the system, either gcc or clang bootstrap must be
356enabled unless an alternate compiler is provided via XCC.
357.It Va WITH_CLANG_EXTRAS
358Set to build additional clang and llvm tools, such as bugpoint and
359clang-format.
360.It Va WITHOUT_CLANG_FULL
361Set to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
362the Clang C/C++ compiler.
363.It Va WITHOUT_CLANG_IS_CC
364Do not install links to the Clang C/C++ compiler as
365.Pa /usr/bin/cc ,
366.Pa /usr/bin/c++
367and
368.Pa /usr/bin/cpp .
369.It Va WITHOUT_CPP
370Set to not build
371.Xr cpp 1 .
372.It Va WITHOUT_CROSS_COMPILER
373Set to not build any cross compiler in the cross-tools stage of buildworld.
374When compiling a different version of
375.Fx
376than what is installed on the system, provide an alternate
377compiler with XCC to ensure success.
378When compiling with an identical version of
379.Fx
380to the host, this option may be safely used.
381This option may also be safe when the host version of
382.Fx
383is close to the sources being built, but all bets are off if there have
384been any changes to the toolchain between the versions.
385When set, it enforces these options:
386.Pp
387.Bl -item -compact
388.It
389.Va WITHOUT_BINUTILS_BOOTSTRAP
390.It
391.Va WITHOUT_CLANG_BOOTSTRAP
392.It
393.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
394.It
395.Va WITHOUT_LLD_BOOTSTRAP
396.El
397.It Va WITHOUT_CRYPT
398Set to not build any crypto code.
399When set, it enforces these options:
400.Pp
401.Bl -item -compact
402.It
403.Va WITHOUT_DMAGENT
404.It
405.Va WITHOUT_KERBEROS
406.It
407.Va WITHOUT_KERBEROS_SUPPORT
408.It
409.Va WITHOUT_LDNS
410.It
411.Va WITHOUT_LDNS_UTILS
412.It
413.Va WITHOUT_OPENSSH
414.It
415.Va WITHOUT_OPENSSL
416.It
417.Va WITHOUT_UNBOUND
418.El
419.Pp
420When set, these options are also in effect:
421.Pp
422.Bl -inset -compact
423.It Va WITHOUT_GSSAPI
424(unless
425.Va WITH_GSSAPI
426is set explicitly)
427.El
428.It Va WITH_CTF
429Set to compile with CTF (Compact C Type Format) data.
430CTF data encapsulates a reduced form of debugging information
431similar to DWARF and the venerable stabs and is required for DTrace.
432.It Va WITHOUT_CUSE
433Set to not build CUSE-related programs and libraries.
434.It Va WITHOUT_CXGBETOOL
435Set to not build
436.Xr cxgbetool 8
437.Pp
438This is a default setting on
439arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
440.It Va WITH_CXGBETOOL
441Set to build
442.Xr cxgbetool 8
443.Pp
444This is a default setting on
445amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
446.It Va WITHOUT_CXX
447Set to not build
448.Xr c++ 1
449and related libraries.
450It will also prevent building of
451.Xr gperf 1
452and
453.Xr devd 8 .
454When set, it enforces these options:
455.Pp
456.Bl -item -compact
457.It
458.Va WITHOUT_CLANG
459.It
460.Va WITHOUT_CLANG_EXTRAS
461.It
462.Va WITHOUT_CLANG_FULL
463.It
464.Va WITHOUT_DTRACE_TESTS
465.It
466.Va WITHOUT_GOOGLETEST
467.It
468.Va WITHOUT_LLVM_COV
469.It
470.Va WITHOUT_TESTS
471.El
472.It Va WITHOUT_DEBUG_FILES
473Set to avoid building or installing standalone debug files for each
474executable binary and shared library.
475.It Va WITHOUT_DIALOG
476Set to not build
477.Xr dialog 1 ,
478.Xr dialog 3 ,
479.Xr dpv 1 ,
480and
481.Xr dpv 3 .
482When set, it enforces these options:
483.Pp
484.Bl -item -compact
485.It
486.Va WITHOUT_BSDINSTALL
487.El
488.It Va WITHOUT_DICT
489Set to not build the Webster dictionary files.
490.It Va WITH_DIRDEPS_BUILD
491This is an experimental build system.
492For details see
493http://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
494Build commands can be seen from the top-level with:
495.Dl make show-valid-targets
496The build is driven by dirdeps.mk using
497.Va DIRDEPS
498stored in
499Makefile.depend files found in each directory.
500.Pp
501The build can be started from anywhere, and behaves the same.
502The initial instance of
503.Xr make 1
504recursively reads
505.Va DIRDEPS
506from
507.Pa Makefile.depend ,
508computing a graph of tree dependencies from the current origin.
509Setting
510.Va NO_DIRDEPS
511skips checking dirdep dependencies and will only build in the current
512and child directories.
513.Va NO_DIRDEPS_BELOW
514skips building any dirdeps and only build the current directory.
515.Pp
516This also utilizes the
517.Va WITH_META_MODE
518logic for incremental builds.
519.Pp
520The build hides commands executed unless
521.Va NO_SILENT
522is defined.
523.Pp
524Note that there is currently no mass install feature for this.
525.Pp
526When set, it enforces these options:
527.Pp
528.Bl -item -compact
529.It
530.Va WITH_INSTALL_AS_USER
531.El
532.Pp
533When set, these options are also in effect:
534.Pp
535.Bl -inset -compact
536.It Va WITH_META_MODE
537(unless
538.Va WITHOUT_META_MODE
539is set explicitly)
540.It Va WITH_STAGING
541(unless
542.Va WITHOUT_STAGING
543is set explicitly)
544.It Va WITH_STAGING_MAN
545(unless
546.Va WITHOUT_STAGING_MAN
547is set explicitly)
548.It Va WITH_STAGING_PROG
549(unless
550.Va WITHOUT_STAGING_PROG
551is set explicitly)
552.It Va WITH_SYSROOT
553(unless
554.Va WITHOUT_SYSROOT
555is set explicitly)
556.El
557.Pp
558This must be set in the environment, make command line, or
559.Pa /etc/src-env.conf ,
560not
561.Pa /etc/src.conf .
562.It Va WITH_DIRDEPS_CACHE
563Cache result of dirdeps.mk which can save significant time
564for subsequent builds.
565Depends on
566.Va WITH_DIRDEPS_BUILD .
567.Pp
568This must be set in the environment, make command line, or
569.Pa /etc/src-env.conf ,
570not
571.Pa /etc/src.conf .
572.It Va WITHOUT_DMAGENT
573Set to not build dma Mail Transport Agent.
574.It Va WITHOUT_DOCCOMPRESS
575Set to not install compressed system documentation.
576Only the uncompressed version will be installed.
577.It Va WITH_DTRACE_TESTS
578Set to build and install the DTrace test suite in
579.Pa /usr/tests/cddl/usr.sbin/dtrace .
580This test suite is considered experimental on architectures other than
581amd64/amd64 and running it may cause system instability.
582.It Va WITHOUT_DYNAMICROOT
583Set this if you do not want to link
584.Pa /bin
585and
586.Pa /sbin
587dynamically.
588.It Va WITHOUT_EE
589Set to not build and install
590.Xr edit 1 ,
591.Xr ee 1 ,
592and related programs.
593.It Va WITHOUT_EFI
594Set not to build
595.Xr efivar 3
596and
597.Xr efivar 8 .
598.Pp
599This is a default setting on
600mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
601.It Va WITH_EFI
602Set to build
603.Xr efivar 3
604and
605.Xr efivar 8 .
606.Pp
607This is a default setting on
608amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64 and i386/i386.
609.It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
610Set to not build ELF Tool Chain tools
611(addr2line, nm, size, strings and strip)
612as part of the bootstrap process.
613.Bf -symbolic
614An alternate bootstrap tool chain must be provided.
615.Ef
616.It Va WITHOUT_EXAMPLES
617Set to avoid installing examples to
618.Pa /usr/share/examples/ .
619.It Va WITH_EXPERIMENTAL
620Set to include experimental features in the build.
621.It Va WITH_EXTRA_TCP_STACKS
622Set to build extra TCP stack modules.
623.It Va WITHOUT_FDT
624Set to not build Flattened Device Tree support as part of the base system.
625This includes the device tree compiler (dtc) and libfdt support library.
626.It Va WITHOUT_FILE
627Set to not build
628.Xr file 1
629and related programs.
630When set, it enforces these options:
631.Pp
632.Bl -item -compact
633.It
634.Va WITHOUT_SVNLITE
635.El
636.It Va WITHOUT_FINGER
637Set to not build or install
638.Xr finger 1
639and
640.Xr fingerd 8 .
641.It Va WITHOUT_FLOPPY
642Set to not build or install programs
643for operating floppy disk driver.
644.It Va WITHOUT_FMTREE
645Set to not build and install
646.Pa /usr/sbin/fmtree .
647.It Va WITHOUT_FORMAT_EXTENSIONS
648Set to not enable
649.Fl fformat-extensions
650when compiling the kernel.
651Also disables all format checking.
652.It Va WITHOUT_FORTH
653Set to build bootloaders without Forth support.
654.It Va WITHOUT_FP_LIBC
655Set to build
656.Nm libc
657without floating-point support.
658.It Va WITHOUT_FREEBSD_UPDATE
659Set to not build
660.Xr freebsd-update 8 .
661.It Va WITHOUT_FTP
662Set to not build or install
663.Xr ftp 1
664and
665.Xr ftpd 8 .
666.It Va WITHOUT_GAMES
667Set to not build games.
668.It Va WITHOUT_GDB
669Set to not build
670.Xr gdb 1 .
671.Pp
672This is a default setting on
673arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
674.It Va WITH_GDB
675Set to build
676.Xr gdb 1 .
677.Pp
678This is a default setting on
679amd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
680.It Va WITHOUT_GNU_DIFF
681Set to not build GNU
682.Xr diff 1
683and
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_COV
922Set to not build the
923.Xr llvm-cov 1
924tool.
925.It Va WITHOUT_LLVM_TARGET_AARCH64
926Set to not build LLVM target support for AArch64.
927The
928.Va LLVM_TARGET_ALL
929option should be used rather than this in most cases.
930.It Va WITHOUT_LLVM_TARGET_ALL
931Set to only build the required LLVM target support.
932This option is preferred to specific target support options.
933When set, these options are also in effect:
934.Pp
935.Bl -inset -compact
936.It Va WITHOUT_LLVM_TARGET_AARCH64
937(unless
938.Va WITH_LLVM_TARGET_AARCH64
939is set explicitly)
940.It Va WITHOUT_LLVM_TARGET_ARM
941(unless
942.Va WITH_LLVM_TARGET_ARM
943is set explicitly)
944.It Va WITHOUT_LLVM_TARGET_MIPS
945(unless
946.Va WITH_LLVM_TARGET_MIPS
947is set explicitly)
948.It Va WITHOUT_LLVM_TARGET_POWERPC
949(unless
950.Va WITH_LLVM_TARGET_POWERPC
951is set explicitly)
952.It Va WITHOUT_LLVM_TARGET_RISCV
953(unless
954.Va WITH_LLVM_TARGET_RISCV
955is set explicitly)
956.El
957.It Va WITHOUT_LLVM_TARGET_ARM
958Set to not build LLVM target support for ARM.
959The
960.Va LLVM_TARGET_ALL
961option should be used rather than this in most cases.
962.It Va WITH_LLVM_TARGET_BPF
963Set to build LLVM target support for BPF.
964The
965.Va LLVM_TARGET_ALL
966option should be used rather than this in most cases.
967.It Va WITHOUT_LLVM_TARGET_MIPS
968Set to not build LLVM target support for MIPS.
969The
970.Va LLVM_TARGET_ALL
971option should be used rather than this in most cases.
972.It Va WITHOUT_LLVM_TARGET_POWERPC
973Set to not build LLVM target support for PowerPC.
974The
975.Va LLVM_TARGET_ALL
976option should be used rather than this in most cases.
977.It Va WITHOUT_LLVM_TARGET_RISCV
978Set to not build LLVM target support for RISC-V.
979The
980.Va LLVM_TARGET_ALL
981option should be used rather than this in most cases.
982.It Va WITHOUT_LLVM_TARGET_X86
983Set to not build LLVM target support for X86.
984The
985.Va LLVM_TARGET_ALL
986option should be used rather than this in most cases.
987.It Va WITH_LOADER_EFI_SECUREBOOT
988Enable building
989.Xr loader 8
990with support for verification based on certificates obtained from UEFI.
991.Pp
992.It Va WITH_LOADER_FIREWIRE
993Enable firewire support in /boot/loader on x86. This option is a nop
994on all other platforms.
995.It Va WITH_LOADER_FORCE_LE
996Set to force the powerpc boot loader to launch the kernel in little
997endian mode.
998.It Va WITHOUT_LOADER_GELI
999Disable inclusion of GELI crypto support in the boot chain binaries.
1000.Pp
1001This is a default setting on
1002powerpc/powerpc and powerpc/powerpc64.
1003.It Va WITH_LOADER_GELI
1004Set to build GELI bootloader support.
1005.Pp
1006This is a default setting on
1007amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1008.It Va WITHOUT_LOADER_LUA
1009Set to not build LUA bindings for the boot loader.
1010.Pp
1011This is a default setting on
1012powerpc/powerpc and powerpc/powerpc64.
1013.It Va WITH_LOADER_LUA
1014Set to build LUA bindings for the boot loader.
1015.Pp
1016This is a default setting on
1017amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1018.It Va WITHOUT_LOADER_OFW
1019Disable building of openfirmware bootloader components.
1020.Pp
1021This is a default setting on
1022amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1023.It Va WITH_LOADER_OFW
1024Set to build openfirmware bootloader components.
1025.Pp
1026This is a default setting on
1027powerpc/powerpc and powerpc/powerpc64.
1028.It Va WITHOUT_LOADER_UBOOT
1029Disable building of ubldr.
1030.Pp
1031This is a default setting on
1032amd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1033.It Va WITH_LOADER_UBOOT
1034Set to build ubldr.
1035.Pp
1036This is a default setting on
1037arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
1038.It Va WITH_LOADER_VERBOSE
1039Set to build with extra verbose debugging in the loader.
1040May explode already nearly too large loader over the limit.
1041Use with care.
1042
1043.It Va WITH_LOADER_VERIEXEC
1044Enable building
1045.Xr loader 8
1046with support for verification similar to Verified Exec.
1047.Pp
1048Depends on
1049.Va WITH_BEARSSL .
1050When set, these options are also in effect:
1051.Pp
1052.Bl -inset -compact
1053.It Va WITH_LOADER_EFI_SECUREBOOT
1054(unless
1055.Va WITHOUT_LOADER_EFI_SECUREBOOT
1056is set explicitly)
1057.It Va WITH_LOADER_VERIEXEC_VECTX
1058(unless
1059.Va WITHOUT_LOADER_VERIEXEC_VECTX
1060is set explicitly)
1061.El
1062.It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
1063Enable building
1064.Xr loader 8
1065with support to pass a verified manifest to the kernel.
1066The kernel has to be built with a module to parse the manifest.
1067.Pp
1068Depends on
1069.Va WITH_LOADER_VERIEXEC .
1070.It Va WITHOUT_LOADER_ZFS
1071Set to not build ZFS file system boot loader support.
1072.It Va WITHOUT_LOCALES
1073Set to not build localization files; see
1074.Xr locale 1 .
1075.It Va WITHOUT_LOCATE
1076Set to not build
1077.Xr locate 1
1078and related programs.
1079.It Va WITHOUT_LPR
1080Set to not build
1081.Xr lpr 1
1082and related programs.
1083.It Va WITHOUT_LS_COLORS
1084Set to build
1085.Xr ls 1
1086without support for colors to distinguish file types.
1087.It Va WITHOUT_LZMA_SUPPORT
1088Set to build some programs without optional lzma compression support.
1089.It Va WITHOUT_MAIL
1090Set to not build any mail support (MUA or MTA).
1091When set, it enforces these options:
1092.Pp
1093.Bl -item -compact
1094.It
1095.Va WITHOUT_DMAGENT
1096.It
1097.Va WITHOUT_MAILWRAPPER
1098.It
1099.Va WITHOUT_SENDMAIL
1100.El
1101.It Va WITHOUT_MAILWRAPPER
1102Set to not build the
1103.Xr mailwrapper 8
1104MTA selector.
1105.It Va WITHOUT_MAKE
1106Set to not install
1107.Xr make 1
1108and related support files.
1109.It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
1110Set to not execute
1111.Dq Li "make check"
1112in limited sandbox mode.
1113This option should be paired with
1114.Va WITH_INSTALL_AS_USER
1115if executed as an unprivileged user.
1116See
1117.Xr tests 7
1118for more details.
1119.It Va WITHOUT_MAN
1120Set to not build manual pages.
1121When set, these options are also in effect:
1122.Pp
1123.Bl -inset -compact
1124.It Va WITHOUT_MAN_UTILS
1125(unless
1126.Va WITH_MAN_UTILS
1127is set explicitly)
1128.El
1129.It Va WITHOUT_MANCOMPRESS
1130Set to not to install compressed man pages.
1131Only the uncompressed versions will be installed.
1132.It Va WITHOUT_MAN_UTILS
1133Set to not build utilities for manual pages,
1134.Xr apropos 1 ,
1135.Xr makewhatis 1 ,
1136.Xr man 1 ,
1137.Xr whatis 1 ,
1138.Xr manctl 8 ,
1139and related support files.
1140.It Va WITH_META_MODE
1141Create
1142.Xr make 1
1143meta files when building, which can provide a reliable incremental build when
1144using
1145.Xr filemon 4 .
1146The meta file is created in OBJDIR as
1147.Pa target.meta .
1148These meta files track the command that was executed, its output, and the
1149current directory.
1150The
1151.Xr filemon 4
1152module is required unless
1153.Va NO_FILEMON
1154is defined.
1155When the module is loaded, any files used by the commands executed are
1156tracked as dependencies for the target in its meta file.
1157The target is considered out-of-date and rebuilt if any of these
1158conditions are true compared to the last build:
1159.Bl -bullet -compact
1160.It
1161The command to execute changes.
1162.It
1163The current working directory changes.
1164.It
1165The target's meta file is missing.
1166.It
1167The target's meta file is missing filemon data when filemon is loaded
1168and a previous run did not have it loaded.
1169.It
1170[requires
1171.Xr filemon 4 ]
1172Files read, executed or linked to are newer than the target.
1173.It
1174[requires
1175.Xr filemon 4 ]
1176Files read, written, executed or linked are missing.
1177.El
1178The meta files can also be useful for debugging.
1179.Pp
1180The build hides commands that are executed unless
1181.Va NO_SILENT
1182is defined.
1183Errors cause
1184.Xr make 1
1185to show some of its environment for further debugging.
1186.Pp
1187The build operates as it normally would otherwise.
1188This option originally invoked a different build system but that was renamed
1189to
1190.Va WITH_DIRDEPS_BUILD .
1191.Pp
1192This must be set in the environment, make command line, or
1193.Pa /etc/src-env.conf ,
1194not
1195.Pa /etc/src.conf .
1196.It Va WITHOUT_MLX5TOOL
1197Set to not build
1198.Xr mlx5tool 8
1199.Pp
1200This is a default setting on
1201arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1202.It Va WITH_MLX5TOOL
1203Set to build
1204.Xr mlx5tool 8
1205.Pp
1206This is a default setting on
1207amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1208.It Va WITHOUT_NDIS
1209Set to not build programs and libraries
1210related to NDIS emulation support.
1211.It Va WITHOUT_NETCAT
1212Set to not build
1213.Xr nc 1
1214utility.
1215.It Va WITHOUT_NETGRAPH
1216Set to not build applications to support
1217.Xr netgraph 4 .
1218When set, it enforces these options:
1219.Pp
1220.Bl -item -compact
1221.It
1222.Va WITHOUT_ATM
1223.It
1224.Va WITHOUT_BLUETOOTH
1225.El
1226.Pp
1227When set, these options are also in effect:
1228.Pp
1229.Bl -inset -compact
1230.It Va WITHOUT_NETGRAPH_SUPPORT
1231(unless
1232.Va WITH_NETGRAPH_SUPPORT
1233is set explicitly)
1234.El
1235.It Va WITHOUT_NETGRAPH_SUPPORT
1236Set to build libraries, programs, and kernel modules without netgraph support.
1237.It Va WITHOUT_NIS
1238Set to not build
1239.Xr NIS 8
1240support and related programs.
1241If set, you might need to adopt your
1242.Xr nsswitch.conf 5
1243and remove
1244.Sq nis
1245entries.
1246.It Va WITHOUT_NLS
1247Set to not build NLS catalogs.
1248When set, it enforces these options:
1249.Pp
1250.Bl -item -compact
1251.It
1252.Va WITHOUT_NLS_CATALOGS
1253.El
1254.It Va WITHOUT_NLS_CATALOGS
1255Set to not build NLS catalog support for
1256.Xr csh 1 .
1257.It Va WITHOUT_NS_CACHING
1258Set to disable name caching in the
1259.Pa nsswitch
1260subsystem.
1261The generic caching daemon,
1262.Xr nscd 8 ,
1263will not be built either if this option is set.
1264.It Va WITHOUT_NTP
1265Set to not build
1266.Xr ntpd 8
1267and related programs.
1268.It Va WITHOUT_NVME
1269Set to not build nvme related tools and kernel modules.
1270.Pp
1271This is a default setting on
1272arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1273.It Va WITH_NVME
1274Set to build nvme related tools and kernel modules.
1275
1276.Pp
1277This is a default setting on
1278amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1279.It Va WITH_OFED
1280Set to build the
1281.Dq "OpenFabrics Enterprise Distribution"
1282Infiniband software stack.
1283.It Va WITH_OFED_EXTRA
1284Set to build the non-essential components of the
1285.Dq "OpenFabrics Enterprise Distribution"
1286Infiniband software stack, mostly examples.
1287.It Va WITH_OPENLDAP
1288Enable building openldap support for kerberos.
1289.It Va WITHOUT_OPENMP
1290Set to not build LLVM's OpenMP runtime.
1291.Pp
1292This is a default setting on
1293arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1294.It Va WITH_OPENMP
1295Set to build LLVM's OpenMP runtime.
1296.Pp
1297This is a default setting on
1298amd64/amd64, i386/i386 and powerpc/powerpc64.
1299.It Va WITHOUT_OPENSSH
1300Set to not build OpenSSH.
1301.It Va WITHOUT_OPENSSL
1302Set to not build OpenSSL.
1303When set, it enforces these options:
1304.Pp
1305.Bl -item -compact
1306.It
1307.Va WITHOUT_DMAGENT
1308.It
1309.Va WITHOUT_KERBEROS
1310.It
1311.Va WITHOUT_KERBEROS_SUPPORT
1312.It
1313.Va WITHOUT_LDNS
1314.It
1315.Va WITHOUT_LDNS_UTILS
1316.It
1317.Va WITHOUT_OPENSSH
1318.It
1319.Va WITHOUT_UNBOUND
1320.El
1321.Pp
1322When set, these options are also in effect:
1323.Pp
1324.Bl -inset -compact
1325.It Va WITHOUT_GSSAPI
1326(unless
1327.Va WITH_GSSAPI
1328is set explicitly)
1329.El
1330.It Va WITHOUT_PAM
1331Set to not build PAM library and modules.
1332.Bf -symbolic
1333This option is deprecated and does nothing.
1334.Ef
1335When set, these options are also in effect:
1336.Pp
1337.Bl -inset -compact
1338.It Va WITHOUT_PAM_SUPPORT
1339(unless
1340.Va WITH_PAM_SUPPORT
1341is set explicitly)
1342.El
1343.It Va WITHOUT_PAM_SUPPORT
1344Set to build some programs without PAM support, particularly
1345.Xr ftpd 8
1346and
1347.Xr ppp 8 .
1348.It Va WITHOUT_PF
1349Set to not build PF firewall package.
1350When set, it enforces these options:
1351.Pp
1352.Bl -item -compact
1353.It
1354.Va WITHOUT_AUTHPF
1355.El
1356.It Va WITH_PIE
1357Build dynamically linked binaries as
1358Position-Independent Executable (PIE).
1359.It Va WITHOUT_PKGBOOTSTRAP
1360Set to not build
1361.Xr pkg 7
1362bootstrap tool.
1363.It Va WITHOUT_PMC
1364Set to not build
1365.Xr pmccontrol 8
1366and related programs.
1367.It Va WITHOUT_PORTSNAP
1368Set to not build or install
1369.Xr portsnap 8
1370and related files.
1371When set, it enforces these options:
1372.Pp
1373.Bl -item -compact
1374.It
1375.Va WITHOUT_FREEBSD_UPDATE
1376.El
1377.It Va WITHOUT_PPP
1378Set to not build
1379.Xr ppp 8
1380and related programs.
1381.It Va WITHOUT_PROFILE
1382Set to not build profiled libraries for use with
1383.Xr gprof 8 .
1384.Pp
1385This is a default setting on
1386mips/mips64.
1387.It Va WITH_PROFILE
1388Set to build profiled libraries for use with
1389.Xr gprof 8 .
1390.Pp
1391This is a default setting on
1392amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1393.It Va WITHOUT_QUOTAS
1394Set to not build
1395.Xr quota 1
1396and related programs.
1397.It Va WITHOUT_RADIUS_SUPPORT
1398Set to not build radius support into various applications, like
1399.Xr pam_radius 8
1400and
1401.Xr ppp 8 .
1402.It Va WITH_RATELIMIT
1403Set to build the system with rate limit support.
1404.Pp
1405This makes
1406.Dv SO_MAX_PACING_RATE
1407effective in
1408.Xr getsockopt 2 ,
1409and
1410.Ar txrlimit
1411support in
1412.Xr ifconfig 8 ,
1413by proxy.
1414.It Va WITHOUT_RBOOTD
1415Set to not build or install
1416.Xr rbootd 8 .
1417.It Va WITH_REPRODUCIBLE_BUILD
1418Set to exclude build metadata (such as the build time, user, or host)
1419from the kernel, boot loaders, and uname output, so that builds produce
1420bit-for-bit identical output.
1421.It Va WITHOUT_RESCUE
1422Set to not build
1423.Xr rescue 8 .
1424.It Va WITH_RETPOLINE
1425Set to build the base system with the retpoline speculative execution
1426vulnerability mitigation for CVE-2017-5715.
1427.It Va WITHOUT_ROUTED
1428Set to not build
1429.Xr routed 8
1430utility.
1431.It Va WITH_RPCBIND_WARMSTART_SUPPORT
1432Set to build
1433.Xr rpcbind 8
1434with warmstart support.
1435.It Va WITHOUT_SENDMAIL
1436Set to not build
1437.Xr sendmail 8
1438and related programs.
1439.It Va WITHOUT_SERVICESDB
1440Set to not install
1441.Pa /var/db/services.db .
1442.It Va WITHOUT_SETUID_LOGIN
1443Set this to disable the installation of
1444.Xr login 1
1445as a set-user-ID root program.
1446.It Va WITHOUT_SHAREDOCS
1447Set to not build the
1448.Bx 4.4
1449legacy docs.
1450.It Va WITHOUT_SHARED_TOOLCHAIN
1451Set to build the toolchain binaries as statically linked executables.
1452The set includes
1453.Xr cc 1 ,
1454.Xr make 1
1455and necessary utilities like assembler, linker and library archive manager.
1456.It Va WITH_SORT_THREADS
1457Set to enable threads in
1458.Xr sort 1 .
1459.It Va WITHOUT_SOURCELESS
1460Set to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1461When set, it enforces these options:
1462.Pp
1463.Bl -item -compact
1464.It
1465.Va WITHOUT_SOURCELESS_HOST
1466.It
1467.Va WITHOUT_SOURCELESS_UCODE
1468.El
1469.It Va WITHOUT_SOURCELESS_HOST
1470Set to not build kernel modules that include sourceless native code for host CPU.
1471.It Va WITHOUT_SOURCELESS_UCODE
1472Set to not build kernel modules that include sourceless microcode.
1473.It Va WITHOUT_SSP
1474Set to not build world with propolice stack smashing protection.
1475.Pp
1476This is a default setting on
1477mips/mips and mips/mips64.
1478.It Va WITH_SSP
1479Set to build world with propolice stack smashing protection.
1480.Pp
1481This is a default setting on
1482amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1483.It Va WITH_STAGING
1484Enable staging of files to a stage tree.
1485This can be best thought of as auto-install to
1486.Va DESTDIR
1487with some extra meta data to ensure dependencies can be tracked.
1488Depends on
1489.Va WITH_DIRDEPS_BUILD .
1490When set, these options are also in effect:
1491.Pp
1492.Bl -inset -compact
1493.It Va WITH_STAGING_MAN
1494(unless
1495.Va WITHOUT_STAGING_MAN
1496is set explicitly)
1497.It Va WITH_STAGING_PROG
1498(unless
1499.Va WITHOUT_STAGING_PROG
1500is set explicitly)
1501.El
1502.Pp
1503This must be set in the environment, make command line, or
1504.Pa /etc/src-env.conf ,
1505not
1506.Pa /etc/src.conf .
1507.It Va WITH_STAGING_MAN
1508Enable staging of man pages to stage tree.
1509.It Va WITH_STAGING_PROG
1510Enable staging of PROGs to stage tree.
1511.It Va WITH_STALE_STAGED
1512Check staged files are not stale.
1513.It Va WITHOUT_STATS
1514Set to neither build nor install
1515.Lb libstats
1516and dependent binaries.
1517.It Va WITH_SVN
1518Set to install
1519.Xr svnlite 1
1520as
1521.Xr svn 1 .
1522.It Va WITHOUT_SVNLITE
1523Set to not build
1524.Xr svnlite 1
1525and related programs.
1526.It Va WITHOUT_SYMVER
1527Set to disable symbol versioning when building shared libraries.
1528.It Va WITHOUT_SYSCONS
1529Set to not build
1530.Xr syscons 4
1531support files such as keyboard maps, fonts, and screen output maps.
1532.It Va WITH_SYSROOT
1533Enable use of sysroot during build.
1534Depends on
1535.Va WITH_DIRDEPS_BUILD .
1536.Pp
1537This must be set in the environment, make command line, or
1538.Pa /etc/src-env.conf ,
1539not
1540.Pa /etc/src.conf .
1541.It Va WITHOUT_SYSTEM_COMPILER
1542Set to not opportunistically skip building a cross-compiler during the
1543bootstrap phase of the build.
1544Normally, if the currently installed compiler matches the planned bootstrap
1545compiler type and revision, then it will not be built.
1546This does not prevent a compiler from being built for installation though,
1547only for building one for the build itself.
1548The
1549.Va WITHOUT_CLANG
1550option controls that.
1551.It Va WITHOUT_SYSTEM_LINKER
1552Set to not opportunistically skip building a cross-linker during the
1553bootstrap phase of the build.
1554Normally, if the currently installed linker matches the planned bootstrap
1555linker type and revision, then it will not be built.
1556This does not prevent a linker from being built for installation though,
1557only for building one for the build itself.
1558The
1559.Va WITHOUT_LLD
1560and
1561.Va WITHOUT_BINUTILS
1562options control those.
1563.Pp
1564This option is only relevant when
1565.Va WITH_LLD_BOOTSTRAP
1566is set.
1567.It Va WITHOUT_TALK
1568Set to not build or install
1569.Xr talk 1
1570and
1571.Xr talkd 8 .
1572.It Va WITHOUT_TCP_WRAPPERS
1573Set to not build or install
1574.Xr tcpd 8 ,
1575and related utilities.
1576.It Va WITHOUT_TCSH
1577Set to not build and install
1578.Pa /bin/csh
1579(which is
1580.Xr tcsh 1 ) .
1581.It Va WITHOUT_TELNET
1582Set to not build
1583.Xr telnet 1
1584and related programs.
1585.It Va WITHOUT_TESTS
1586Set to not build nor install the
1587.Fx
1588Test Suite in
1589.Pa /usr/tests/ .
1590See
1591.Xr tests 7
1592for more details.
1593This also disables the build of all test-related dependencies, including ATF.
1594When set, it enforces these options:
1595.Pp
1596.Bl -item -compact
1597.It
1598.Va WITHOUT_DTRACE_TESTS
1599.El
1600.Pp
1601When set, these options are also in effect:
1602.Pp
1603.Bl -inset -compact
1604.It Va WITHOUT_GOOGLETEST
1605(unless
1606.Va WITH_GOOGLETEST
1607is set explicitly)
1608.It Va WITHOUT_TESTS_SUPPORT
1609(unless
1610.Va WITH_TESTS_SUPPORT
1611is set explicitly)
1612.El
1613.It Va WITHOUT_TESTS_SUPPORT
1614Set to disables the build of all test-related dependencies, including ATF.
1615When set, it enforces these options:
1616.Pp
1617.Bl -item -compact
1618.It
1619.Va WITHOUT_GOOGLETEST
1620.El
1621.It Va WITHOUT_TEXTPROC
1622Set to not build
1623programs used for text processing.
1624.It Va WITHOUT_TFTP
1625Set to not build or install
1626.Xr tftp 1
1627and
1628.Xr tftpd 8 .
1629.It Va WITHOUT_TOOLCHAIN
1630Set to not install header or
1631programs used for program development,
1632compilers, debuggers etc.
1633When set, it enforces these options:
1634.Pp
1635.Bl -item -compact
1636.It
1637.Va WITHOUT_BINUTILS
1638.It
1639.Va WITHOUT_CLANG
1640.It
1641.Va WITHOUT_CLANG_EXTRAS
1642.It
1643.Va WITHOUT_CLANG_FULL
1644.It
1645.Va WITHOUT_GDB
1646.It
1647.Va WITHOUT_INCLUDES
1648.It
1649.Va WITHOUT_LLD
1650.It
1651.Va WITHOUT_LLDB
1652.It
1653.Va WITHOUT_LLVM_COV
1654.El
1655.It Va WITHOUT_UNBOUND
1656Set to not build
1657.Xr unbound 8
1658and related programs.
1659.It Va WITHOUT_UNIFIED_OBJDIR
1660Set to use the historical object directory format for
1661.Xr build 7
1662targets.
1663For native-builds and builds done directly in sub-directories the format of
1664.Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1665is used,
1666while for cross-builds
1667.Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1668is used.
1669.Pp
1670This option is transitional and will be removed before the 12.0 release,
1671at which time
1672.va WITH_UNIFIED_OBJDIR
1673will be enabled permanently.
1674.Pp
1675This must be set in the environment, make command line, or
1676.Pa /etc/src-env.conf ,
1677not
1678.Pa /etc/src.conf .
1679.It Va WITHOUT_USB
1680Set to not build USB-related programs and libraries.
1681.It Va WITHOUT_USB_GADGET_EXAMPLES
1682Set to not build USB gadget kernel modules.
1683.It Va WITHOUT_UTMPX
1684Set to not build user accounting tools such as
1685.Xr last 1 ,
1686.Xr users 1 ,
1687.Xr who 1 ,
1688.Xr ac 8 ,
1689.Xr lastlogin 8
1690and
1691.Xr utx 8 .
1692.It Va WITH_VERIEXEC
1693Enable building
1694.Xr veriexec 8
1695which loads the contents of verified manifests into the kernel
1696for use by
1697.Xr mac_veriexec 4
1698.Pp
1699Depends on
1700.Va WITH_BEARSSL .
1701.It Va WITHOUT_VI
1702Set to not build and install vi, view, ex and related programs.
1703.It Va WITHOUT_VT
1704Set to not build
1705.Xr vt 4
1706support files (fonts and keymaps).
1707.It Va WITHOUT_WARNS
1708Set this to not add warning flags to the compiler invocations.
1709Useful as a temporary workaround when code enters the tree
1710which triggers warnings in environments that differ from the
1711original developer.
1712.It Va WITHOUT_WIRELESS
1713Set to not build programs used for 802.11 wireless networks; especially
1714.Xr wpa_supplicant 8
1715and
1716.Xr hostapd 8 .
1717When set, these options are also in effect:
1718.Pp
1719.Bl -inset -compact
1720.It Va WITHOUT_WIRELESS_SUPPORT
1721(unless
1722.Va WITH_WIRELESS_SUPPORT
1723is set explicitly)
1724.El
1725.It Va WITHOUT_WIRELESS_SUPPORT
1726Set to build libraries, programs, and kernel modules without
1727802.11 wireless support.
1728.It Va WITHOUT_WPA_SUPPLICANT_EAPOL
1729Build
1730.Xr wpa_supplicant 8
1731without support for the IEEE 802.1X protocol and without
1732support for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
1733protocols (usable only via 802.1X).
1734.It Va WITHOUT_ZFS
1735Set to not build ZFS file system kernel module, libraries, and user commands.
1736.It Va WITHOUT_ZONEINFO
1737Set to not build the timezone database.
1738When set, it enforces these options:
1739.Pp
1740.Bl -item -compact
1741.It
1742.Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
1743.It
1744.Va WITHOUT_ZONEINFO_OLD_TIMEZONES_SUPPORT
1745.El
1746.It Va WITH_ZONEINFO_LEAPSECONDS_SUPPORT
1747Set to build leapsecond information in to the timezone database.
1748.It Va WITH_ZONEINFO_OLD_TIMEZONES_SUPPORT
1749Set to build backward compatibility timezone aliases in to the timezone
1750database.
1751.El
1752.Sh FILES
1753.Bl -tag -compact -width Pa
1754.It Pa /etc/src.conf
1755.It Pa /etc/src-env.conf
1756.It Pa /usr/share/mk/bsd.own.mk
1757.El
1758.Sh SEE ALSO
1759.Xr make 1 ,
1760.Xr make.conf 5 ,
1761.Xr build 7 ,
1762.Xr ports 7
1763.Sh HISTORY
1764The
1765.Nm
1766file appeared in
1767.Fx 7.0 .
1768.Sh AUTHORS
1769This manual page was autogenerated by
1770.An tools/build/options/makeman .
1771