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