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