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