1 .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
8 .Nd "source build options"
12 file contains settings that will apply to every build involving the
19 file uses the standard makefile syntax.
22 should not specify any dependencies to
28 variables that control the aspects of how the system builds.
30 The default location of
34 though an alternative location can be specified in the
38 Overriding the location of
40 may be necessary if the system-wide settings are not suitable
41 for a particular build.
46 effectively resets all build controls to their defaults.
50 is to control the compilation of the
52 source code, which is usually located in
54 As a rule, the system administrator creates
56 when the values of certain control variables need to be changed
59 In addition, control variables can be specified
60 for a particular build via the
64 or in its environment; see
69 for the build can be controlled via the
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 ,
79 as they are environment-only variables.
81 The values of variables are ignored regardless of their setting;
82 even if they would be set to
86 The presence of an option causes
90 This list provides a name and short description for variables
91 that can be used for source builds.
92 .Bl -tag -width indent
94 Set to not build process accounting tools such as
102 and related programs.
107 and related programs.
108 .It Va WITHOUT_ASSERT_DEBUG
109 Set to compile programs and libraries without the
115 and related utilities.
118 programs and libraries related to ATM networking.
120 Set to not build audit support into system programs.
121 .It Va WITHOUT_AUTHPF
124 .It Va WITHOUT_AUTOFS
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.
132 This must be set in the environment, make command line, or
133 .Pa /etc/src-env.conf ,
137 Build the BearSSL library.
139 BearSSL is a tiny SSL library suitable for embedded environments.
141 .Lk http://www.BearSSL.org/
143 This library is currently only used to perform
144 signature verification and related operations
145 for Verified Exec and
147 When set, these options are also in effect:
150 .It Va WITH_LOADER_EFI_SECUREBOOT
152 .Va WITHOUT_LOADER_EFI_SECUREBOOT
154 .It Va WITH_LOADER_VERIEXEC
156 .Va WITHOUT_LOADER_VERIEXEC
158 .It Va WITH_LOADER_VERIEXEC_VECTX
160 .Va WITHOUT_LOADER_VERIEXEC_VECTX
168 Set to not build or install
170 associated utilities, and examples.
172 This option only affects amd64/amd64.
174 Build all binaries with the
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
184 of the normal system build.
186 This is a default setting on
187 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
189 Build and install GNU
195 on powerpc as part of the normal system build.
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.
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
207 as part of the bootstrap process.
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
216 When set, these options are also in effect:
219 .It Va WITHOUT_BLACKLIST_SUPPORT
221 .Va WITH_BLACKLIST_SUPPORT
224 .It Va WITHOUT_BLACKLIST_SUPPORT
225 Set to build some programs without
232 .It Va WITHOUT_BLUETOOTH
233 Set to not build Bluetooth related kernel modules, programs and libraries.
235 Set to not build the boot blocks and loader.
236 .It Va WITHOUT_BOOTPARAMD
237 Set to not build or install
239 .It Va WITHOUT_BOOTPD
240 Set to not build or install
242 .It Va WITHOUT_BSDINSTALL
246 and related programs.
247 .It Va WITHOUT_BSD_CPIO
248 Set to not build the BSD licensed version of cpio based on
251 Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
253 Set to not build or install
255 and related libraries and data files.
257 Set to not build contributed bzip2 software as a part of the base system.
259 The option has no effect yet.
261 When set, these options are also in effect:
264 .It Va WITHOUT_BZIP2_SUPPORT
266 .Va WITH_BZIP2_SUPPORT
269 .It Va WITHOUT_BZIP2_SUPPORT
270 Set to build some programs without optional bzip2 support.
271 .It Va WITHOUT_CALENDAR
274 .It Va WITHOUT_CAPSICUM
275 Set to not build Capsicum support into system programs.
276 When set, it enforces these options:
282 .It Va WITHOUT_CAROOT
283 Set to not add the trusted certificates from the Mozilla NSS bundle to
285 .It Va WITHOUT_CASPER
286 Set to not build Casper program and related libraries.
287 .It Va WITH_CCACHE_BUILD
291 No configuration is required except to install the
297 .Sy CCACHE_PREFIX=/usr/local/bin/distcc .
298 The default cache directory of
300 will be used, which can be overridden by setting
303 .Sy CCACHE_COMPILERCHECK
306 when using the in-tree bootstrap compiler,
309 when using an external compiler.
312 option is used for Clang but not GCC.
314 Sharing a cache between multiple work directories requires using a layout
318 and an environment such as:
319 .Bd -literal -offset indent
320 CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
325 for more configuration options.
329 and related utilities.
331 Set to not build code licensed under Sun's CDDL.
332 When set, it enforces these options:
338 .Va WITHOUT_LOADER_ZFS
343 Set to not build the Clang C/C++ compiler during the regular phase of the build.
344 When set, it enforces these options:
348 .Va WITHOUT_CLANG_EXTRAS
350 .Va WITHOUT_CLANG_FULL
354 .It Va WITHOUT_CLANG_BOOTSTRAP
355 Set to not build the Clang C/C++ compiler during the bootstrap phase of
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.
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.
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
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
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
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.
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
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
402 to the host, this option may be safely used.
403 This option may also be safe when the host version of
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:
411 .Va WITHOUT_BINUTILS_BOOTSTRAP
413 .Va WITHOUT_CLANG_BOOTSTRAP
415 .Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
417 .Va WITHOUT_LLD_BOOTSTRAP
420 Set to not build any crypto code.
421 When set, it enforces these options:
429 .Va WITHOUT_KERBEROS_SUPPORT
433 .Va WITHOUT_LDNS_UTILS
442 When set, these options are also in effect:
445 .It Va WITHOUT_GSSAPI
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.
455 Set to not build CUSE-related programs and libraries.
456 .It Va WITHOUT_CXGBETOOL
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
466 This is a default setting on
467 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
471 and related libraries.
472 It will also prevent building of
476 When set, it enforces these options:
482 .Va WITHOUT_CLANG_EXTRAS
484 .Va WITHOUT_CLANG_FULL
486 .Va WITHOUT_DTRACE_TESTS
488 .Va WITHOUT_GOOGLETEST
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
504 When set, it enforces these options:
508 .Va WITHOUT_BSDINSTALL
511 Set to not build the Webster dictionary files.
512 .It Va WITH_DIRDEPS_BUILD
513 This is an experimental build system.
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
521 Makefile.depend files found in each directory.
523 The build can be started from anywhere, and behaves the same.
524 The initial instance of
529 .Pa Makefile.depend ,
530 computing a graph of tree dependencies from the current origin.
533 skips checking dirdep dependencies and will only build in the current
534 and child directories.
536 skips building any dirdeps and only build the current directory.
538 This also utilizes the
540 logic for incremental builds.
542 The build hides commands executed unless
546 Note that there is currently no mass install feature for this.
548 When set, it enforces these options:
552 .Va WITH_INSTALL_AS_USER
555 When set, these options are also in effect:
558 .It Va WITH_META_MODE
560 .Va WITHOUT_META_MODE
566 .It Va WITH_STAGING_MAN
568 .Va WITHOUT_STAGING_MAN
570 .It Va WITH_STAGING_PROG
572 .Va WITHOUT_STAGING_PROG
580 This must be set in the environment, make command line, or
581 .Pa /etc/src-env.conf ,
584 .It Va WITH_DIRDEPS_CACHE
585 Cache result of dirdeps.mk which can save significant time
586 for subsequent builds.
588 .Va WITH_DIRDEPS_BUILD .
590 This must be set in the environment, make command line, or
591 .Pa /etc/src-env.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
611 Set to not build and install
614 and related programs.
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.
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.
636 An alternate bootstrap tool chain must be provided.
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.
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.
651 and related programs.
652 When set, it enforces these options:
658 .It Va WITHOUT_FINGER
659 Set to not build or install
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
671 .Fl fformat-extensions
672 when compiling the kernel.
673 Also disables all format checking.
675 Set to build bootloaders without Forth support.
676 .It Va WITHOUT_FP_LIBC
679 without floating-point support.
680 .It Va WITHOUT_FREEBSD_UPDATE
682 .Xr freebsd-update 8 .
684 Set to not build or install
689 Set to not build games.
694 This is a default setting on
695 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
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
707 .It Va WITHOUT_GNU_DIFF
712 .It Va WITHOUT_GNU_GREP
715 .It Va WITH_GNU_GREP_COMPAT
716 Set this option to include GNU extensions in
718 by linking against libgnuregex.
719 .It Va WITHOUT_GOOGLETEST
720 Set to neither build nor install
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
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.
738 as part of the base system.
739 .It Va WITHOUT_GSSAPI
740 Set to not build libgssapi.
744 and related utilities.
746 Set to build Hesiod support.
748 Set to not build HTML docs.
749 .It Va WITHOUT_HYPERV
750 Set to not build or install HyperV utilities.
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.
755 Set to build or install HyperV utilities.
757 This is a default setting on
758 amd64/amd64 and i386/i386.
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
766 The option does not work for build targets.
769 Set to not build programs and libraries related to IPv4 networking.
770 When set, it enforces these options:
774 .Va WITHOUT_INET_SUPPORT
778 programs and libraries related to IPv6 networking.
779 When set, it enforces these options:
783 .Va WITHOUT_INET6_SUPPORT
785 .It Va WITHOUT_INET6_SUPPORT
786 Set to build libraries, programs, and kernel modules without IPv6 support.
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
798 The option does not work for build targets.
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
806 The user still must set the
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.
812 Set to not build IPFW tools.
813 .It Va WITHOUT_IPSEC_SUPPORT
814 Set to not build the kernel with
817 This option is needed for
824 and related utilities.
826 Set to not build tools for the support of jails; e.g.,
833 .It Va WITHOUT_KERBEROS
834 Set this to not build Kerberos 5 (KTH Heimdal).
835 When set, these options are also in effect:
838 .It Va WITHOUT_GSSAPI
842 .It Va WITHOUT_KERBEROS_SUPPORT
844 .Va WITH_KERBEROS_SUPPORT
847 .It Va WITHOUT_KERBEROS_SUPPORT
848 Set to build some programs without Kerberos support, like
854 .It Va WITH_KERNEL_RETPOLINE
855 Set to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
857 .It Va WITHOUT_KERNEL_SYMBOLS
858 Set to not install kernel symbol files.
860 This option is recommended for those people who have small root partitions.
865 library as a part of the base system.
867 The option has no effect yet.
869 When set, these options are also in effect:
872 .It Va WITHOUT_KVM_SUPPORT
877 .It Va WITHOUT_KVM_SUPPORT
878 Set to build some programs without optional
882 Setting this variable will prevent the LDNS library from being built.
883 When set, it enforces these options:
887 .Va WITHOUT_LDNS_UTILS
891 .It Va WITHOUT_LDNS_UTILS
892 Setting this variable will prevent building the LDNS utilities
896 .It Va WITHOUT_LEGACY_CONSOLE
897 Set to not build programs that support a legacy PC console; e.g.,
902 On 64-bit platforms, set to not build 32-bit library set and a
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
915 When set, it enforces these options:
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
930 Set to not build LLVM's lld linker.
932 Set to not build the LLDB debugger.
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.
937 Set to build the LLDB debugger.
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
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.
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.
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.
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.
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
969 .It Va WITHOUT_LLVM_TARGET_AARCH64
970 Set to not build LLVM target support for AArch64.
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:
980 .It Va WITHOUT_LLVM_TARGET_AARCH64
982 .Va WITH_LLVM_TARGET_AARCH64
984 .It Va WITHOUT_LLVM_TARGET_ARM
986 .Va WITH_LLVM_TARGET_ARM
988 .It Va WITHOUT_LLVM_TARGET_MIPS
990 .Va WITH_LLVM_TARGET_MIPS
992 .It Va WITHOUT_LLVM_TARGET_POWERPC
994 .Va WITH_LLVM_TARGET_POWERPC
996 .It Va WITHOUT_LLVM_TARGET_RISCV
998 .Va WITH_LLVM_TARGET_RISCV
1001 .It Va WITHOUT_LLVM_TARGET_ARM
1002 Set to not build LLVM target support for ARM.
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.
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.
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.
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.
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.
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.
1035 option should be used rather than this in most cases.
1036 .It Va WITH_LOADER_EFI_SECUREBOOT
1039 with support for verification based on certificates obtained from UEFI.
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
1047 .It Va WITHOUT_LOADER_GELI
1048 Disable inclusion of GELI crypto support in the boot chain binaries.
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.
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.
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.
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.
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.
1075 This is a default setting on
1076 powerpc/powerpc and powerpc/powerpc64.
1077 .It Va WITHOUT_LOADER_UBOOT
1078 Disable building of ubldr.
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
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.
1092 .It Va WITH_LOADER_VERIEXEC
1095 with support for verification similar to Verified Exec.
1099 When set, these options are also in effect:
1102 .It Va WITH_LOADER_EFI_SECUREBOOT
1104 .Va WITHOUT_LOADER_EFI_SECUREBOOT
1106 .It Va WITH_LOADER_VERIEXEC_VECTX
1108 .Va WITHOUT_LOADER_VERIEXEC_VECTX
1111 .It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
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.
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
1124 .It Va WITHOUT_LOCATE
1127 and related programs.
1131 and related programs.
1132 .It Va WITHOUT_LS_COLORS
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.
1139 Set to not build any mail support (MUA or MTA).
1140 When set, it enforces these options:
1146 .Va WITHOUT_MAILWRAPPER
1148 .Va WITHOUT_SENDMAIL
1150 .It Va WITHOUT_MAILWRAPPER
1151 Set to not build the
1157 and related support files.
1158 .It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
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.
1169 Set to not build manual pages.
1170 When set, these options are also in effect:
1173 .It Va WITHOUT_MAN_UTILS
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,
1188 and related support files.
1189 .It Va WITH_META_MODE
1192 meta files when building, which can provide a reliable incremental build when
1195 The meta file is created in OBJDIR as
1197 These meta files track the command that was executed, its output, and the
1201 module is required unless
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
1210 The command to execute changes.
1212 The current working directory changes.
1214 The target's meta file is missing.
1216 The target's meta file is missing filemon data when filemon is loaded
1217 and a previous run did not have it loaded.
1221 Files read, executed or linked to are newer than the target.
1225 Files read, written, executed or linked are missing.
1227 The meta files can also be useful for debugging.
1229 The build hides commands that are executed unless
1234 to show some of its environment for further debugging.
1236 The build operates as it normally would otherwise.
1237 This option originally invoked a different build system but that was renamed
1239 .Va WITH_DIRDEPS_BUILD .
1241 This must be set in the environment, make command line, or
1242 .Pa /etc/src-env.conf ,
1245 .It Va WITHOUT_MLX5TOOL
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
1255 This is a default setting on
1256 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1258 Set to not build programs and libraries
1259 related to NDIS emulation support.
1260 .It Va WITHOUT_NETCAT
1264 .It Va WITHOUT_NETGRAPH
1265 Set to not build applications to support
1267 When set, it enforces these options:
1273 .Va WITHOUT_BLUETOOTH
1276 When set, these options are also in effect:
1279 .It Va WITHOUT_NETGRAPH_SUPPORT
1281 .Va WITH_NETGRAPH_SUPPORT
1284 .It Va WITHOUT_NETGRAPH_SUPPORT
1285 Set to build libraries, programs, and kernel modules without netgraph support.
1289 support and related programs.
1290 If set, you might need to adopt your
1296 Set to not build NLS catalogs.
1297 When set, it enforces these options:
1301 .Va WITHOUT_NLS_CATALOGS
1303 .It Va WITHOUT_NLS_CATALOGS
1304 Set to not build NLS catalog support for
1306 .It Va WITHOUT_NS_CACHING
1307 Set to disable name caching in the
1310 The generic caching daemon,
1312 will not be built either if this option is set.
1316 and related programs.
1318 Set to not build nvme related tools and kernel modules.
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.
1323 Set to build nvme related tools and kernel modules.
1326 This is a default setting on
1327 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
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.
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.
1344 Set to build LLVM's OpenMP runtime.
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:
1358 .Va WITHOUT_KERBEROS
1360 .Va WITHOUT_KERBEROS_SUPPORT
1364 .Va WITHOUT_LDNS_UTILS
1371 When set, these options are also in effect:
1374 .It Va WITHOUT_GSSAPI
1380 Set to not build PAM library and modules.
1382 This option is deprecated and does nothing.
1384 When set, these options are also in effect:
1387 .It Va WITHOUT_PAM_SUPPORT
1389 .Va WITH_PAM_SUPPORT
1392 .It Va WITHOUT_PAM_SUPPORT
1393 Set to build some programs without PAM support, particularly
1398 Set to not build PF firewall package.
1399 When set, it enforces these options:
1406 Build dynamically linked binaries as
1407 Position-Independent Executable (PIE).
1408 .It Va WITHOUT_PKGBOOTSTRAP
1415 and related programs.
1416 .It Va WITHOUT_PORTSNAP
1417 Set to not build or install
1420 When set, it enforces these options:
1424 .Va WITHOUT_FREEBSD_UPDATE
1429 and related programs.
1430 .It Va WITHOUT_PROFILE
1431 Set to not build profiled libraries for use with
1434 This is a default setting on
1435 mips/mips64el, mips/mips64, mips/mips64elhf and mips/mips64hf.
1437 Set to build profiled libraries for use with
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
1445 and related programs.
1446 .It Va WITHOUT_RADIUS_SUPPORT
1447 Set to not build radius support into various applications, like
1451 .It Va WITH_RATELIMIT
1452 Set to build the system with rate limit support.
1455 .Dv SO_MAX_PACING_RATE
1463 .It Va WITHOUT_RBOOTD
1464 Set to not build or install
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
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
1480 .It Va WITH_RPCBIND_WARMSTART_SUPPORT
1483 with warmstart support.
1484 .It Va WITHOUT_SENDMAIL
1487 and related programs.
1488 .It Va WITHOUT_SERVICESDB
1490 .Pa /var/db/services.db .
1491 .It Va WITHOUT_SETUID_LOGIN
1492 Set this to disable the installation of
1494 as a set-user-ID root program.
1495 .It Va WITHOUT_SHAREDOCS
1496 Set to not build the
1499 .It Va WITHOUT_SHARED_TOOLCHAIN
1500 Set to build the toolchain binaries as statically linked executables.
1504 and necessary utilities like assembler, linker and library archive manager.
1505 .It Va WITH_SORT_THREADS
1506 Set to enable threads in
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:
1514 .Va WITHOUT_SOURCELESS_HOST
1516 .Va WITHOUT_SOURCELESS_UCODE
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.
1523 Set to not build world with propolice stack smashing protection.
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.
1528 Set to build world with propolice stack smashing protection.
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.
1533 Enable staging of files to a stage tree.
1534 This can be best thought of as auto-install to
1536 with some extra meta data to ensure dependencies can be tracked.
1538 .Va WITH_DIRDEPS_BUILD .
1539 When set, these options are also in effect:
1542 .It Va WITH_STAGING_MAN
1544 .Va WITHOUT_STAGING_MAN
1546 .It Va WITH_STAGING_PROG
1548 .Va WITHOUT_STAGING_PROG
1552 This must be set in the environment, make command line, or
1553 .Pa /etc/src-env.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
1565 and dependent binaries.
1571 .It Va WITHOUT_SVNLITE
1574 and related programs.
1575 .It Va WITHOUT_SYMVER
1576 Set to disable symbol versioning when building shared libraries.
1577 .It Va WITHOUT_SYSCONS
1580 support files such as keyboard maps, fonts, and screen output maps.
1582 Enable use of sysroot during build.
1584 .Va WITH_DIRDEPS_BUILD .
1586 This must be set in the environment, make command line, or
1587 .Pa /etc/src-env.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.
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.
1610 .Va WITHOUT_BINUTILS
1611 options control those.
1613 This option is only relevant when
1614 .Va WITH_LLD_BOOTSTRAP
1617 Set to not build or install
1621 .It Va WITHOUT_TCP_WRAPPERS
1622 Set to not build or install
1624 and related utilities.
1626 Set to not build and install
1630 .It Va WITHOUT_TELNET
1633 and related programs.
1634 .It Va WITHOUT_TESTS
1635 Set to not build nor install the
1642 This also disables the build of all test-related dependencies, including ATF.
1643 When set, it enforces these options:
1647 .Va WITHOUT_DTRACE_TESTS
1650 When set, these options are also in effect:
1653 .It Va WITHOUT_GOOGLETEST
1657 .It Va WITHOUT_TESTS_SUPPORT
1659 .Va WITH_TESTS_SUPPORT
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:
1668 .Va WITHOUT_GOOGLETEST
1670 .It Va WITHOUT_TEXTPROC
1672 programs used for text processing.
1674 Set to not build or install
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:
1686 .Va WITHOUT_BINUTILS
1690 .Va WITHOUT_CLANG_EXTRAS
1692 .Va WITHOUT_CLANG_FULL
1696 .Va WITHOUT_INCLUDES
1702 .Va WITHOUT_LLVM_COV
1704 .It Va WITHOUT_UNBOUND
1707 and related programs.
1708 .It Va WITHOUT_UNIFIED_OBJDIR
1709 Set to use the historical object directory format for
1712 For native-builds and builds done directly in sub-directories the format of
1713 .Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1715 while for cross-builds
1716 .Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1719 This option is transitional and will be removed before the 12.0 release,
1721 .va WITH_UNIFIED_OBJDIR
1722 will be enabled permanently.
1724 This must be set in the environment, make command line, or
1725 .Pa /etc/src-env.conf ,
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
1741 .It Va WITH_VERIEXEC
1744 which loads the contents of verified manifests into the kernel
1751 Set to not build and install vi, view, ex and related programs.
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
1761 .It Va WITHOUT_WIRELESS
1762 Set to not build programs used for 802.11 wireless networks; especially
1763 .Xr wpa_supplicant 8
1766 When set, these options are also in effect:
1769 .It Va WITHOUT_WIRELESS_SUPPORT
1771 .Va WITH_WIRELESS_SUPPORT
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
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).
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:
1791 .Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
1793 .Va WITHOUT_ZONEINFO_OLD_TIMEZONES_SUPPORT
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
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
1818 This manual page was autogenerated by
1819 .An tools/build/options/makeman .