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
183 of the normal system build.
185 This is a default setting on
186 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
188 Build and install GNU
193 as part of the normal system build.
195 This is a default setting on
196 amd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
197 .It Va WITHOUT_BINUTILS_BOOTSTRAP
198 Do not build GNU binutils
199 as part of the bootstrap process.
201 This is a default setting on
202 arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
203 .It Va WITH_BINUTILS_BOOTSTRAP
205 as part of the bootstrap process.
207 This is a default setting on
208 amd64/amd64 and i386/i386.
209 .It Va WITHOUT_BLACKLIST
210 Set this if you do not want to build
214 When set, these options are also in effect:
217 .It Va WITHOUT_BLACKLIST_SUPPORT
219 .Va WITH_BLACKLIST_SUPPORT
222 .It Va WITHOUT_BLACKLIST_SUPPORT
223 Set to build some programs without
230 .It Va WITHOUT_BLUETOOTH
231 Set to not build Bluetooth related kernel modules, programs and libraries.
233 Set to not build the boot blocks and loader.
234 .It Va WITHOUT_BOOTPARAMD
235 Set to not build or install
237 .It Va WITHOUT_BOOTPD
238 Set to not build or install
240 .It Va WITHOUT_BSDINSTALL
244 and related programs.
245 .It Va WITHOUT_BSD_CPIO
246 Set to not build the BSD licensed version of cpio based on
249 Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
251 Set to not build or install
253 and related libraries and data files.
255 Set to not build contributed bzip2 software as a part of the base system.
257 The option has no effect yet.
259 When set, these options are also in effect:
262 .It Va WITHOUT_BZIP2_SUPPORT
264 .Va WITH_BZIP2_SUPPORT
267 .It Va WITHOUT_BZIP2_SUPPORT
268 Set to build some programs without optional bzip2 support.
269 .It Va WITHOUT_CALENDAR
272 .It Va WITHOUT_CAPSICUM
273 Set to not build Capsicum support into system programs.
274 When set, it enforces these options:
280 .It Va WITHOUT_CAROOT
281 Set to not add the trusted certificates from the Mozilla NSS bundle to
283 .It Va WITHOUT_CASPER
284 Set to not build Casper program and related libraries.
285 .It Va WITH_CCACHE_BUILD
289 No configuration is required except to install the
295 .Sy CCACHE_PREFIX=/usr/local/bin/distcc .
296 The default cache directory of
298 will be used, which can be overridden by setting
301 .Sy CCACHE_COMPILERCHECK
304 when using the in-tree bootstrap compiler,
307 when using an external compiler.
310 option is used for Clang but not GCC.
312 Sharing a cache between multiple work directories requires using a layout
316 and an environment such as:
317 .Bd -literal -offset indent
318 CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
323 for more configuration options.
327 and related utilities.
329 Set to not build code licensed under Sun's CDDL.
330 When set, it enforces these options:
336 .Va WITHOUT_LOADER_ZFS
341 Set to not build the Clang C/C++ compiler during the regular phase of the build.
342 When set, it enforces these options:
346 .Va WITHOUT_CLANG_EXTRAS
348 .Va WITHOUT_CLANG_FULL
352 .It Va WITHOUT_CLANG_BOOTSTRAP
353 Set to not build the Clang C/C++ compiler during the bootstrap phase of
355 To be able to build the system, either gcc or clang bootstrap must be
356 enabled unless an alternate compiler is provided via XCC.
357 .It Va WITH_CLANG_EXTRAS
358 Set to build additional clang and llvm tools, such as bugpoint and
360 .It Va WITHOUT_CLANG_FULL
361 Set to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
362 the Clang C/C++ compiler.
363 .It Va WITHOUT_CLANG_IS_CC
364 Do not install links to the Clang C/C++ compiler as
372 .It Va WITHOUT_CROSS_COMPILER
373 Set to not build any cross compiler in the cross-tools stage of buildworld.
374 When compiling a different version of
376 than what is installed on the system, provide an alternate
377 compiler with XCC to ensure success.
378 When compiling with an identical version of
380 to the host, this option may be safely used.
381 This option may also be safe when the host version of
383 is close to the sources being built, but all bets are off if there have
384 been any changes to the toolchain between the versions.
385 When set, it enforces these options:
389 .Va WITHOUT_BINUTILS_BOOTSTRAP
391 .Va WITHOUT_CLANG_BOOTSTRAP
393 .Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
395 .Va WITHOUT_LLD_BOOTSTRAP
398 Set to not build any crypto code.
399 When set, it enforces these options:
407 .Va WITHOUT_KERBEROS_SUPPORT
411 .Va WITHOUT_LDNS_UTILS
420 When set, these options are also in effect:
423 .It Va WITHOUT_GSSAPI
429 Set to compile with CTF (Compact C Type Format) data.
430 CTF data encapsulates a reduced form of debugging information
431 similar to DWARF and the venerable stabs and is required for DTrace.
433 Set to not build CUSE-related programs and libraries.
434 .It Va WITHOUT_CXGBETOOL
438 This is a default setting on
439 arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
440 .It Va WITH_CXGBETOOL
444 This is a default setting on
445 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
449 and related libraries.
450 It will also prevent building of
454 When set, it enforces these options:
460 .Va WITHOUT_CLANG_EXTRAS
462 .Va WITHOUT_CLANG_FULL
464 .Va WITHOUT_DTRACE_TESTS
466 .Va WITHOUT_GOOGLETEST
472 .It Va WITHOUT_DEBUG_FILES
473 Set to avoid building or installing standalone debug files for each
474 executable binary and shared library.
475 .It Va WITHOUT_DIALOG
482 When set, it enforces these options:
486 .Va WITHOUT_BSDINSTALL
489 Set to not build the Webster dictionary files.
490 .It Va WITH_DIRDEPS_BUILD
491 This is an experimental build system.
493 http://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
494 Build commands can be seen from the top-level with:
495 .Dl make show-valid-targets
496 The build is driven by dirdeps.mk using
499 Makefile.depend files found in each directory.
501 The build can be started from anywhere, and behaves the same.
502 The initial instance of
507 .Pa Makefile.depend ,
508 computing a graph of tree dependencies from the current origin.
511 skips checking dirdep dependencies and will only build in the current
512 and child directories.
514 skips building any dirdeps and only build the current directory.
516 This also utilizes the
518 logic for incremental builds.
520 The build hides commands executed unless
524 Note that there is currently no mass install feature for this.
526 When set, it enforces these options:
530 .Va WITH_INSTALL_AS_USER
533 When set, these options are also in effect:
536 .It Va WITH_META_MODE
538 .Va WITHOUT_META_MODE
544 .It Va WITH_STAGING_MAN
546 .Va WITHOUT_STAGING_MAN
548 .It Va WITH_STAGING_PROG
550 .Va WITHOUT_STAGING_PROG
558 This must be set in the environment, make command line, or
559 .Pa /etc/src-env.conf ,
562 .It Va WITH_DIRDEPS_CACHE
563 Cache result of dirdeps.mk which can save significant time
564 for subsequent builds.
566 .Va WITH_DIRDEPS_BUILD .
568 This must be set in the environment, make command line, or
569 .Pa /etc/src-env.conf ,
572 .It Va WITHOUT_DMAGENT
573 Set to not build dma Mail Transport Agent.
574 .It Va WITHOUT_DOCCOMPRESS
575 Set to not install compressed system documentation.
576 Only the uncompressed version will be installed.
577 .It Va WITH_DTRACE_TESTS
578 Set to build and install the DTrace test suite in
579 .Pa /usr/tests/cddl/usr.sbin/dtrace .
580 This test suite is considered experimental on architectures other than
581 amd64/amd64 and running it may cause system instability.
582 .It Va WITHOUT_DYNAMICROOT
583 Set this if you do not want to link
589 Set to not build and install
592 and related programs.
599 This is a default setting on
600 mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
607 This is a default setting on
608 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64 and i386/i386.
609 .It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
610 Set to not build ELF Tool Chain tools
611 (addr2line, nm, size, strings and strip)
612 as part of the bootstrap process.
614 An alternate bootstrap tool chain must be provided.
616 .It Va WITHOUT_EXAMPLES
617 Set to avoid installing examples to
618 .Pa /usr/share/examples/ .
619 .It Va WITH_EXPERIMENTAL
620 Set to include experimental features in the build.
621 .It Va WITH_EXTRA_TCP_STACKS
622 Set to build extra TCP stack modules.
624 Set to not build Flattened Device Tree support as part of the base system.
625 This includes the device tree compiler (dtc) and libfdt support library.
629 and related programs.
630 When set, it enforces these options:
636 .It Va WITHOUT_FINGER
637 Set to not build or install
641 .It Va WITHOUT_FLOPPY
642 Set to not build or install programs
643 for operating floppy disk driver.
644 .It Va WITHOUT_FMTREE
645 Set to not build and install
646 .Pa /usr/sbin/fmtree .
647 .It Va WITHOUT_FORMAT_EXTENSIONS
649 .Fl fformat-extensions
650 when compiling the kernel.
651 Also disables all format checking.
653 Set to build bootloaders without Forth support.
654 .It Va WITHOUT_FP_LIBC
657 without floating-point support.
658 .It Va WITHOUT_FREEBSD_UPDATE
660 .Xr freebsd-update 8 .
662 Set to not build or install
667 Set to not build games.
672 This is a default setting on
673 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
678 This is a default setting on
679 amd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
680 .It Va WITHOUT_GNU_DIFF
685 .It Va WITHOUT_GNU_GREP
688 .It Va WITH_GNU_GREP_COMPAT
689 Set this option to include GNU extensions in
691 by linking against libgnuregex.
692 .It Va WITHOUT_GOOGLETEST
693 Set to neither build nor install
698 This is a default setting on
699 mips/mips and mips/mips64.
700 .It Va WITH_GOOGLETEST
701 Set to build and install
706 This is a default setting on
707 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
711 as part of the base system.
712 .It Va WITHOUT_GSSAPI
713 Set to not build libgssapi.
717 and related utilities.
719 Set to build Hesiod support.
721 Set to not build HTML docs.
722 .It Va WITHOUT_HYPERV
723 Set to not build or install HyperV utilities.
725 This is a default setting on
726 arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
728 Set to build or install HyperV utilities.
730 This is a default setting on
731 amd64/amd64 and i386/i386.
733 Set to not build iconv as part of libc.
734 .It Va WITHOUT_INCLUDES
735 Set to not install header files.
736 This option used to be spelled
739 The option does not work for build targets.
742 Set to not build programs and libraries related to IPv4 networking.
743 When set, it enforces these options:
747 .Va WITHOUT_INET_SUPPORT
751 programs and libraries related to IPv6 networking.
752 When set, it enforces these options:
756 .Va WITHOUT_INET6_SUPPORT
758 .It Va WITHOUT_INET6_SUPPORT
759 Set to build libraries, programs, and kernel modules without IPv6 support.
763 .It Va WITHOUT_INET_SUPPORT
764 Set to build libraries, programs, and kernel modules without IPv4 support.
765 .It Va WITHOUT_INSTALLLIB
766 Set this to not install optional libraries.
767 For example, when creating a
771 The option does not work for build targets.
773 .It Va WITH_INSTALL_AS_USER
774 Set to make install targets succeed for non-root users by installing
775 files with owner and group attributes set to that of the user running
779 The user still must set the
781 variable to point to a directory where the user has write permissions.
782 .It Va WITHOUT_IPFILTER
783 Set to not build IP Filter package.
785 Set to not build IPFW tools.
786 .It Va WITHOUT_IPSEC_SUPPORT
787 Set to not build the kernel with
790 This option is needed for
797 and related utilities.
799 Set to not build tools for the support of jails; e.g.,
806 .It Va WITHOUT_KERBEROS
807 Set this to not build Kerberos 5 (KTH Heimdal).
808 When set, these options are also in effect:
811 .It Va WITHOUT_GSSAPI
815 .It Va WITHOUT_KERBEROS_SUPPORT
817 .Va WITH_KERBEROS_SUPPORT
820 .It Va WITHOUT_KERBEROS_SUPPORT
821 Set to build some programs without Kerberos support, like
827 .It Va WITH_KERNEL_RETPOLINE
828 Set to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
830 .It Va WITHOUT_KERNEL_SYMBOLS
831 Set to not install kernel symbol files.
833 This option is recommended for those people who have small root partitions.
838 library as a part of the base system.
840 The option has no effect yet.
842 When set, these options are also in effect:
845 .It Va WITHOUT_KVM_SUPPORT
850 .It Va WITHOUT_KVM_SUPPORT
851 Set to build some programs without optional
855 Setting this variable will prevent the LDNS library from being built.
856 When set, it enforces these options:
860 .Va WITHOUT_LDNS_UTILS
864 .It Va WITHOUT_LDNS_UTILS
865 Setting this variable will prevent building the LDNS utilities
869 .It Va WITHOUT_LEGACY_CONSOLE
870 Set to not build programs that support a legacy PC console; e.g.,
875 On 64-bit platforms, set to not build 32-bit library set and a
879 This is a default setting on
880 arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
881 .It Va WITHOUT_LIBCPLUSPLUS
882 Set to avoid building libcxxrt and libc++.
883 .It Va WITHOUT_LIBPTHREAD
888 When set, it enforces these options:
895 On armv6 only, set to enable soft float ABI compatibility libraries.
896 This option is for transitioning to the new hard float ABI.
897 .It Va WITHOUT_LIBTHR
903 Set to not build LLVM's lld linker.
905 Set to not build the LLDB debugger.
907 This is a default setting on
908 arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
910 Set to build the LLDB debugger.
912 This is a default setting on
913 amd64/amd64, arm64/aarch64 and i386/i386.
914 .It Va WITHOUT_LLD_BOOTSTRAP
915 Set to not build the LLD linker during the bootstrap phase of
917 To be able to build the system, either Binutils or LLD bootstrap must be
918 enabled unless an alternate linker is provided via XLD.
919 .It Va WITHOUT_LLD_IS_LD
920 Set to use GNU binutils ld as the system linker, instead of LLVM's LLD.
921 .It Va WITHOUT_LLVM_COV
925 .It Va WITHOUT_LLVM_TARGET_AARCH64
926 Set to not build LLVM target support for AArch64.
929 option should be used rather than this in most cases.
930 .It Va WITHOUT_LLVM_TARGET_ALL
931 Set to only build the required LLVM target support.
932 This option is preferred to specific target support options.
933 When set, these options are also in effect:
936 .It Va WITHOUT_LLVM_TARGET_AARCH64
938 .Va WITH_LLVM_TARGET_AARCH64
940 .It Va WITHOUT_LLVM_TARGET_ARM
942 .Va WITH_LLVM_TARGET_ARM
944 .It Va WITHOUT_LLVM_TARGET_MIPS
946 .Va WITH_LLVM_TARGET_MIPS
948 .It Va WITHOUT_LLVM_TARGET_POWERPC
950 .Va WITH_LLVM_TARGET_POWERPC
952 .It Va WITHOUT_LLVM_TARGET_RISCV
954 .Va WITH_LLVM_TARGET_RISCV
957 .It Va WITHOUT_LLVM_TARGET_ARM
958 Set to not build LLVM target support for ARM.
961 option should be used rather than this in most cases.
962 .It Va WITH_LLVM_TARGET_BPF
963 Set to build LLVM target support for BPF.
966 option should be used rather than this in most cases.
967 .It Va WITHOUT_LLVM_TARGET_MIPS
968 Set to not build LLVM target support for MIPS.
971 option should be used rather than this in most cases.
972 .It Va WITHOUT_LLVM_TARGET_POWERPC
973 Set to not build LLVM target support for PowerPC.
976 option should be used rather than this in most cases.
977 .It Va WITHOUT_LLVM_TARGET_RISCV
978 Set to not build LLVM target support for RISC-V.
981 option should be used rather than this in most cases.
982 .It Va WITHOUT_LLVM_TARGET_X86
983 Set to not build LLVM target support for X86.
986 option should be used rather than this in most cases.
987 .It Va WITH_LOADER_EFI_SECUREBOOT
990 with support for verification based on certificates obtained from UEFI.
992 .It Va WITH_LOADER_FIREWIRE
993 Enable firewire support in /boot/loader on x86. This option is a nop
994 on all other platforms.
995 .It Va WITH_LOADER_FORCE_LE
996 Set to force the powerpc boot loader to launch the kernel in little
998 .It Va WITHOUT_LOADER_GELI
999 Disable inclusion of GELI crypto support in the boot chain binaries.
1001 This is a default setting on
1002 powerpc/powerpc and powerpc/powerpc64.
1003 .It Va WITH_LOADER_GELI
1004 Set to build GELI bootloader support.
1006 This is a default setting on
1007 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1008 .It Va WITHOUT_LOADER_LUA
1009 Set to not build LUA bindings for the boot loader.
1011 This is a default setting on
1012 powerpc/powerpc and powerpc/powerpc64.
1013 .It Va WITH_LOADER_LUA
1014 Set to build LUA bindings for the boot loader.
1016 This is a default setting on
1017 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1018 .It Va WITHOUT_LOADER_OFW
1019 Disable building of openfirmware bootloader components.
1021 This is a default setting on
1022 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1023 .It Va WITH_LOADER_OFW
1024 Set to build openfirmware bootloader components.
1026 This is a default setting on
1027 powerpc/powerpc and powerpc/powerpc64.
1028 .It Va WITHOUT_LOADER_UBOOT
1029 Disable building of ubldr.
1031 This is a default setting on
1032 amd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1033 .It Va WITH_LOADER_UBOOT
1036 This is a default setting on
1037 arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
1038 .It Va WITH_LOADER_VERBOSE
1039 Set to build with extra verbose debugging in the loader.
1040 May explode already nearly too large loader over the limit.
1043 .It Va WITH_LOADER_VERIEXEC
1046 with support for verification similar to Verified Exec.
1050 When set, these options are also in effect:
1053 .It Va WITH_LOADER_EFI_SECUREBOOT
1055 .Va WITHOUT_LOADER_EFI_SECUREBOOT
1057 .It Va WITH_LOADER_VERIEXEC_VECTX
1059 .Va WITHOUT_LOADER_VERIEXEC_VECTX
1062 .It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
1065 with support to pass a verified manifest to the kernel.
1066 The kernel has to be built with a module to parse the manifest.
1069 .Va WITH_LOADER_VERIEXEC .
1070 .It Va WITHOUT_LOADER_ZFS
1071 Set to not build ZFS file system boot loader support.
1072 .It Va WITHOUT_LOCALES
1073 Set to not build localization files; see
1075 .It Va WITHOUT_LOCATE
1078 and related programs.
1082 and related programs.
1083 .It Va WITHOUT_LS_COLORS
1086 without support for colors to distinguish file types.
1087 .It Va WITHOUT_LZMA_SUPPORT
1088 Set to build some programs without optional lzma compression support.
1090 Set to not build any mail support (MUA or MTA).
1091 When set, it enforces these options:
1097 .Va WITHOUT_MAILWRAPPER
1099 .Va WITHOUT_SENDMAIL
1101 .It Va WITHOUT_MAILWRAPPER
1102 Set to not build the
1108 and related support files.
1109 .It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
1112 in limited sandbox mode.
1113 This option should be paired with
1114 .Va WITH_INSTALL_AS_USER
1115 if executed as an unprivileged user.
1120 Set to not build manual pages.
1121 When set, these options are also in effect:
1124 .It Va WITHOUT_MAN_UTILS
1129 .It Va WITHOUT_MANCOMPRESS
1130 Set to not to install compressed man pages.
1131 Only the uncompressed versions will be installed.
1132 .It Va WITHOUT_MAN_UTILS
1133 Set to not build utilities for manual pages,
1139 and related support files.
1140 .It Va WITH_META_MODE
1143 meta files when building, which can provide a reliable incremental build when
1146 The meta file is created in OBJDIR as
1148 These meta files track the command that was executed, its output, and the
1152 module is required unless
1155 When the module is loaded, any files used by the commands executed are
1156 tracked as dependencies for the target in its meta file.
1157 The target is considered out-of-date and rebuilt if any of these
1158 conditions are true compared to the last build:
1159 .Bl -bullet -compact
1161 The command to execute changes.
1163 The current working directory changes.
1165 The target's meta file is missing.
1167 The target's meta file is missing filemon data when filemon is loaded
1168 and a previous run did not have it loaded.
1172 Files read, executed or linked to are newer than the target.
1176 Files read, written, executed or linked are missing.
1178 The meta files can also be useful for debugging.
1180 The build hides commands that are executed unless
1185 to show some of its environment for further debugging.
1187 The build operates as it normally would otherwise.
1188 This option originally invoked a different build system but that was renamed
1190 .Va WITH_DIRDEPS_BUILD .
1192 This must be set in the environment, make command line, or
1193 .Pa /etc/src-env.conf ,
1196 .It Va WITHOUT_MLX5TOOL
1200 This is a default setting on
1201 arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1202 .It Va WITH_MLX5TOOL
1206 This is a default setting on
1207 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1209 Set to not build programs and libraries
1210 related to NDIS emulation support.
1211 .It Va WITHOUT_NETCAT
1215 .It Va WITHOUT_NETGRAPH
1216 Set to not build applications to support
1218 When set, it enforces these options:
1224 .Va WITHOUT_BLUETOOTH
1227 When set, these options are also in effect:
1230 .It Va WITHOUT_NETGRAPH_SUPPORT
1232 .Va WITH_NETGRAPH_SUPPORT
1235 .It Va WITHOUT_NETGRAPH_SUPPORT
1236 Set to build libraries, programs, and kernel modules without netgraph support.
1240 support and related programs.
1241 If set, you might need to adopt your
1247 Set to not build NLS catalogs.
1248 When set, it enforces these options:
1252 .Va WITHOUT_NLS_CATALOGS
1254 .It Va WITHOUT_NLS_CATALOGS
1255 Set to not build NLS catalog support for
1257 .It Va WITHOUT_NS_CACHING
1258 Set to disable name caching in the
1261 The generic caching daemon,
1263 will not be built either if this option is set.
1267 and related programs.
1269 Set to not build nvme related tools and kernel modules.
1271 This is a default setting on
1272 arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1274 Set to build nvme related tools and kernel modules.
1277 This is a default setting on
1278 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1281 .Dq "OpenFabrics Enterprise Distribution"
1282 Infiniband software stack.
1283 .It Va WITH_OFED_EXTRA
1284 Set to build the non-essential components of the
1285 .Dq "OpenFabrics Enterprise Distribution"
1286 Infiniband software stack, mostly examples.
1287 .It Va WITH_OPENLDAP
1288 Enable building openldap support for kerberos.
1289 .It Va WITHOUT_OPENMP
1290 Set to not build LLVM's OpenMP runtime.
1292 This is a default setting on
1293 arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1295 Set to build LLVM's OpenMP runtime.
1297 This is a default setting on
1298 amd64/amd64, i386/i386 and powerpc/powerpc64.
1299 .It Va WITHOUT_OPENSSH
1300 Set to not build OpenSSH.
1301 .It Va WITHOUT_OPENSSL
1302 Set to not build OpenSSL.
1303 When set, it enforces these options:
1309 .Va WITHOUT_KERBEROS
1311 .Va WITHOUT_KERBEROS_SUPPORT
1315 .Va WITHOUT_LDNS_UTILS
1322 When set, these options are also in effect:
1325 .It Va WITHOUT_GSSAPI
1331 Set to not build PAM library and modules.
1333 This option is deprecated and does nothing.
1335 When set, these options are also in effect:
1338 .It Va WITHOUT_PAM_SUPPORT
1340 .Va WITH_PAM_SUPPORT
1343 .It Va WITHOUT_PAM_SUPPORT
1344 Set to build some programs without PAM support, particularly
1349 Set to not build PF firewall package.
1350 When set, it enforces these options:
1357 Build dynamically linked binaries as
1358 Position-Independent Executable (PIE).
1359 .It Va WITHOUT_PKGBOOTSTRAP
1366 and related programs.
1367 .It Va WITHOUT_PORTSNAP
1368 Set to not build or install
1371 When set, it enforces these options:
1375 .Va WITHOUT_FREEBSD_UPDATE
1380 and related programs.
1381 .It Va WITHOUT_PROFILE
1382 Set to not build profiled libraries for use with
1385 This is a default setting on
1388 Set to build profiled libraries for use with
1391 This is a default setting on
1392 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1393 .It Va WITHOUT_QUOTAS
1396 and related programs.
1397 .It Va WITHOUT_RADIUS_SUPPORT
1398 Set to not build radius support into various applications, like
1402 .It Va WITH_RATELIMIT
1403 Set to build the system with rate limit support.
1406 .Dv SO_MAX_PACING_RATE
1414 .It Va WITHOUT_RBOOTD
1415 Set to not build or install
1417 .It Va WITH_REPRODUCIBLE_BUILD
1418 Set to exclude build metadata (such as the build time, user, or host)
1419 from the kernel, boot loaders, and uname output, so that builds produce
1420 bit-for-bit identical output.
1421 .It Va WITHOUT_RESCUE
1424 .It Va WITH_RETPOLINE
1425 Set to build the base system with the retpoline speculative execution
1426 vulnerability mitigation for CVE-2017-5715.
1427 .It Va WITHOUT_ROUTED
1431 .It Va WITH_RPCBIND_WARMSTART_SUPPORT
1434 with warmstart support.
1435 .It Va WITHOUT_SENDMAIL
1438 and related programs.
1439 .It Va WITHOUT_SERVICESDB
1441 .Pa /var/db/services.db .
1442 .It Va WITHOUT_SETUID_LOGIN
1443 Set this to disable the installation of
1445 as a set-user-ID root program.
1446 .It Va WITHOUT_SHAREDOCS
1447 Set to not build the
1450 .It Va WITHOUT_SHARED_TOOLCHAIN
1451 Set to build the toolchain binaries as statically linked executables.
1455 and necessary utilities like assembler, linker and library archive manager.
1456 .It Va WITH_SORT_THREADS
1457 Set to enable threads in
1459 .It Va WITHOUT_SOURCELESS
1460 Set to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1461 When set, it enforces these options:
1465 .Va WITHOUT_SOURCELESS_HOST
1467 .Va WITHOUT_SOURCELESS_UCODE
1469 .It Va WITHOUT_SOURCELESS_HOST
1470 Set to not build kernel modules that include sourceless native code for host CPU.
1471 .It Va WITHOUT_SOURCELESS_UCODE
1472 Set to not build kernel modules that include sourceless microcode.
1474 Set to not build world with propolice stack smashing protection.
1476 This is a default setting on
1477 mips/mips and mips/mips64.
1479 Set to build world with propolice stack smashing protection.
1481 This is a default setting on
1482 amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1484 Enable staging of files to a stage tree.
1485 This can be best thought of as auto-install to
1487 with some extra meta data to ensure dependencies can be tracked.
1489 .Va WITH_DIRDEPS_BUILD .
1490 When set, these options are also in effect:
1493 .It Va WITH_STAGING_MAN
1495 .Va WITHOUT_STAGING_MAN
1497 .It Va WITH_STAGING_PROG
1499 .Va WITHOUT_STAGING_PROG
1503 This must be set in the environment, make command line, or
1504 .Pa /etc/src-env.conf ,
1507 .It Va WITH_STAGING_MAN
1508 Enable staging of man pages to stage tree.
1509 .It Va WITH_STAGING_PROG
1510 Enable staging of PROGs to stage tree.
1511 .It Va WITH_STALE_STAGED
1512 Check staged files are not stale.
1513 .It Va WITHOUT_STATS
1514 Set to neither build nor install
1516 and dependent binaries.
1522 .It Va WITHOUT_SVNLITE
1525 and related programs.
1526 .It Va WITHOUT_SYMVER
1527 Set to disable symbol versioning when building shared libraries.
1528 .It Va WITHOUT_SYSCONS
1531 support files such as keyboard maps, fonts, and screen output maps.
1533 Enable use of sysroot during build.
1535 .Va WITH_DIRDEPS_BUILD .
1537 This must be set in the environment, make command line, or
1538 .Pa /etc/src-env.conf ,
1541 .It Va WITHOUT_SYSTEM_COMPILER
1542 Set to not opportunistically skip building a cross-compiler during the
1543 bootstrap phase of the build.
1544 Normally, if the currently installed compiler matches the planned bootstrap
1545 compiler type and revision, then it will not be built.
1546 This does not prevent a compiler from being built for installation though,
1547 only for building one for the build itself.
1550 option controls that.
1551 .It Va WITHOUT_SYSTEM_LINKER
1552 Set to not opportunistically skip building a cross-linker during the
1553 bootstrap phase of the build.
1554 Normally, if the currently installed linker matches the planned bootstrap
1555 linker type and revision, then it will not be built.
1556 This does not prevent a linker from being built for installation though,
1557 only for building one for the build itself.
1561 .Va WITHOUT_BINUTILS
1562 options control those.
1564 This option is only relevant when
1565 .Va WITH_LLD_BOOTSTRAP
1568 Set to not build or install
1572 .It Va WITHOUT_TCP_WRAPPERS
1573 Set to not build or install
1575 and related utilities.
1577 Set to not build and install
1581 .It Va WITHOUT_TELNET
1584 and related programs.
1585 .It Va WITHOUT_TESTS
1586 Set to not build nor install the
1593 This also disables the build of all test-related dependencies, including ATF.
1594 When set, it enforces these options:
1598 .Va WITHOUT_DTRACE_TESTS
1601 When set, these options are also in effect:
1604 .It Va WITHOUT_GOOGLETEST
1608 .It Va WITHOUT_TESTS_SUPPORT
1610 .Va WITH_TESTS_SUPPORT
1613 .It Va WITHOUT_TESTS_SUPPORT
1614 Set to disables the build of all test-related dependencies, including ATF.
1615 When set, it enforces these options:
1619 .Va WITHOUT_GOOGLETEST
1621 .It Va WITHOUT_TEXTPROC
1623 programs used for text processing.
1625 Set to not build or install
1629 .It Va WITHOUT_TOOLCHAIN
1630 Set to not install header or
1631 programs used for program development,
1632 compilers, debuggers etc.
1633 When set, it enforces these options:
1637 .Va WITHOUT_BINUTILS
1641 .Va WITHOUT_CLANG_EXTRAS
1643 .Va WITHOUT_CLANG_FULL
1647 .Va WITHOUT_INCLUDES
1653 .Va WITHOUT_LLVM_COV
1655 .It Va WITHOUT_UNBOUND
1658 and related programs.
1659 .It Va WITHOUT_UNIFIED_OBJDIR
1660 Set to use the historical object directory format for
1663 For native-builds and builds done directly in sub-directories the format of
1664 .Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1666 while for cross-builds
1667 .Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1670 This option is transitional and will be removed before the 12.0 release,
1672 .va WITH_UNIFIED_OBJDIR
1673 will be enabled permanently.
1675 This must be set in the environment, make command line, or
1676 .Pa /etc/src-env.conf ,
1680 Set to not build USB-related programs and libraries.
1681 .It Va WITHOUT_USB_GADGET_EXAMPLES
1682 Set to not build USB gadget kernel modules.
1683 .It Va WITHOUT_UTMPX
1684 Set to not build user accounting tools such as
1692 .It Va WITH_VERIEXEC
1695 which loads the contents of verified manifests into the kernel
1702 Set to not build and install vi, view, ex and related programs.
1706 support files (fonts and keymaps).
1707 .It Va WITHOUT_WARNS
1708 Set this to not add warning flags to the compiler invocations.
1709 Useful as a temporary workaround when code enters the tree
1710 which triggers warnings in environments that differ from the
1712 .It Va WITHOUT_WIRELESS
1713 Set to not build programs used for 802.11 wireless networks; especially
1714 .Xr wpa_supplicant 8
1717 When set, these options are also in effect:
1720 .It Va WITHOUT_WIRELESS_SUPPORT
1722 .Va WITH_WIRELESS_SUPPORT
1725 .It Va WITHOUT_WIRELESS_SUPPORT
1726 Set to build libraries, programs, and kernel modules without
1727 802.11 wireless support.
1728 .It Va WITHOUT_WPA_SUPPLICANT_EAPOL
1730 .Xr wpa_supplicant 8
1731 without support for the IEEE 802.1X protocol and without
1732 support for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
1733 protocols (usable only via 802.1X).
1735 Set to not build ZFS file system kernel module, libraries, and user commands.
1736 .It Va WITHOUT_ZONEINFO
1737 Set to not build the timezone database.
1738 When set, it enforces these options:
1742 .Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
1744 .Va WITHOUT_ZONEINFO_OLD_TIMEZONES_SUPPORT
1746 .It Va WITH_ZONEINFO_LEAPSECONDS_SUPPORT
1747 Set to build leapsecond information in to the timezone database.
1748 .It Va WITH_ZONEINFO_OLD_TIMEZONES_SUPPORT
1749 Set to build backward compatibility timezone aliases in to the timezone
1753 .Bl -tag -compact -width Pa
1754 .It Pa /etc/src.conf
1755 .It Pa /etc/src-env.conf
1756 .It Pa /usr/share/mk/bsd.own.mk
1769 This manual page was autogenerated by
1770 .An tools/build/options/makeman .