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