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