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