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