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.
104 Set to build the legacy
106 automount daemon and related programs.
109 is the preferred automount technique.
114 and related programs.
115 .It Va WITHOUT_ASSERT_DEBUG
116 Set to compile programs and libraries without the
122 and related utilities.
125 programs and libraries related to ATM networking.
127 Set to not build audit support into system programs.
128 .It Va WITHOUT_AUTHPF
131 .It Va WITHOUT_AUTOFS
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.
139 This must be set in the environment, make command line, or
140 .Pa /etc/src-env.conf ,
144 Build the BearSSL library.
146 BearSSL is a tiny SSL library suitable for embedded environments.
148 .Lk http://www.BearSSL.org/
150 This library is currently only used to perform
151 signature verification and related operations
152 for Verified Exec and
154 When set, these options are also in effect:
157 .It Va WITH_LOADER_EFI_SECUREBOOT
159 .Va WITHOUT_LOADER_EFI_SECUREBOOT
161 .It Va WITH_LOADER_VERIEXEC
163 .Va WITHOUT_LOADER_VERIEXEC
171 Set to not build or install
173 associated utilities, and examples.
175 This option only affects amd64/amd64.
177 Build all binaries with the
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
187 of the normal system build.
189 This is a default setting on
190 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
192 Build and install GNU
198 on powerpc as part of the normal system build.
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.
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
210 as part of the bootstrap process.
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
219 When set, these options are also in effect:
222 .It Va WITHOUT_BLACKLIST_SUPPORT
224 .Va WITH_BLACKLIST_SUPPORT
227 .It Va WITHOUT_BLACKLIST_SUPPORT
228 Set to build some programs without
235 .It Va WITHOUT_BLUETOOTH
236 Set to not build Bluetooth related kernel modules, programs and libraries.
238 Set to not build the boot blocks and loader.
239 .It Va WITHOUT_BOOTPARAMD
240 Set to not build or install
242 .It Va WITHOUT_BOOTPD
243 Set to not build or install
245 .It Va WITHOUT_BSDINSTALL
249 and related programs.
250 .It Va WITHOUT_BSD_CPIO
251 Set to not build the BSD licensed version of cpio based on
254 Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
256 Set to not build or install
258 and related libraries and data files.
260 Set to not build contributed bzip2 software as a part of the base system.
262 The option has no effect yet.
264 When set, these options are also in effect:
267 .It Va WITHOUT_BZIP2_SUPPORT
269 .Va WITH_BZIP2_SUPPORT
272 .It Va WITHOUT_BZIP2_SUPPORT
273 Set to build some programs without optional bzip2 support.
274 .It Va WITHOUT_CALENDAR
277 .It Va WITHOUT_CAPSICUM
278 Set to not build Capsicum support into system programs.
279 When set, it enforces these options:
285 .It Va WITHOUT_CAROOT
286 Set to not add the trusted certificates from the Mozilla NSS bundle to
288 .It Va WITHOUT_CASPER
289 Set to not build Casper program and related libraries.
290 .It Va WITH_CCACHE_BUILD
294 No configuration is required except to install the
300 .Sy CCACHE_PREFIX=/usr/local/bin/distcc .
301 The default cache directory of
303 will be used, which can be overridden by setting
306 .Sy CCACHE_COMPILERCHECK
309 when using the in-tree bootstrap compiler,
312 when using an external compiler.
315 option is used for Clang but not GCC.
317 Sharing a cache between multiple work directories requires using a layout
321 and an environment such as:
322 .Bd -literal -offset indent
323 CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
328 for more configuration options.
332 and related utilities.
334 Set to not build code licensed under Sun's CDDL.
335 When set, it enforces these options:
341 .Va WITHOUT_LOADER_ZFS
346 Set to not build the Clang C/C++ compiler during the regular phase of the build.
347 When set, it enforces these options:
351 .Va WITHOUT_CLANG_EXTRAS
353 .Va WITHOUT_CLANG_FULL
357 .It Va WITHOUT_CLANG_BOOTSTRAP
358 Set to not build the Clang C/C++ compiler during the bootstrap phase of
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.
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.
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
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
384 is set then links to the GCC C/C++ compiler will be installed instead.
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
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.
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
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
408 to the host, this option may be safely used.
409 This option may also be safe when the host version of
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:
417 .Va WITHOUT_BINUTILS_BOOTSTRAP
419 .Va WITHOUT_CLANG_BOOTSTRAP
421 .Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
423 .Va WITHOUT_GCC_BOOTSTRAP
425 .Va WITHOUT_LLD_BOOTSTRAP
428 Set to not build any crypto code.
429 When set, it enforces these options:
437 .Va WITHOUT_KERBEROS_SUPPORT
441 .Va WITHOUT_LDNS_UTILS
450 When set, these options are also in effect:
453 .It Va WITHOUT_GSSAPI
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.
463 Set to not build CUSE-related programs and libraries.
464 .It Va WITHOUT_CXGBETOOL
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
474 This is a default setting on
475 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
479 and related libraries.
480 It will also prevent building of
484 When set, it enforces these options:
490 .Va WITHOUT_CLANG_EXTRAS
492 .Va WITHOUT_CLANG_FULL
494 .Va WITHOUT_DTRACE_TESTS
498 .Va WITHOUT_GOOGLETEST
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
514 When set, it enforces these options:
518 .Va WITHOUT_BSDINSTALL
521 Set to not build the Webster dictionary files.
522 .It Va WITH_DIRDEPS_BUILD
523 This is an experimental build system.
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
531 Makefile.depend files found in each directory.
533 The build can be started from anywhere, and behaves the same.
534 The initial instance of
539 .Pa Makefile.depend ,
540 computing a graph of tree dependencies from the current origin.
543 skips checking dirdep dependencies and will only build in the current
544 and child directories.
546 skips building any dirdeps and only build the current directory.
548 This also utilizes the
550 logic for incremental builds.
552 The build hides commands executed unless
556 Note that there is currently no mass install feature for this.
558 When set, it enforces these options:
562 .Va WITH_INSTALL_AS_USER
565 When set, these options are also in effect:
568 .It Va WITH_META_MODE
570 .Va WITHOUT_META_MODE
576 .It Va WITH_STAGING_MAN
578 .Va WITHOUT_STAGING_MAN
580 .It Va WITH_STAGING_PROG
582 .Va WITHOUT_STAGING_PROG
590 This must be set in the environment, make command line, or
591 .Pa /etc/src-env.conf ,
594 .It Va WITH_DIRDEPS_CACHE
595 Cache result of dirdeps.mk which can save significant time
596 for subsequent builds.
598 .Va WITH_DIRDEPS_BUILD .
600 This must be set in the environment, make command line, or
601 .Pa /etc/src-env.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
621 Set to not build and install
624 and related programs.
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.
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.
646 An alternate bootstrap tool chain must be provided.
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.
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.
661 and related programs.
662 When set, it enforces these options:
668 .It Va WITHOUT_FINGER
669 Set to not build or install
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
681 .Fl fformat-extensions
682 when compiling the kernel.
683 Also disables all format checking.
685 Set to build bootloaders without Forth support.
686 .It Va WITHOUT_FP_LIBC
689 without floating-point support.
690 .It Va WITHOUT_FREEBSD_UPDATE
692 .Xr freebsd-update 8 .
694 Set to not build or install
699 Set to not build games.
701 Set to build and install gcc and g++.
702 This option is deprecated and will be removed before
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
716 This is a default setting on
717 arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
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
730 Build the GNU C++ stack (g++, libstdc++).
731 This option is deprecated and will be removed before
733 .It Va WITHOUT_GNU_DIFF
738 .It Va WITHOUT_GNU_GREP
741 .It Va WITH_GNU_GREP_COMPAT
742 Set this option to include GNU extensions in
744 by linking against libgnuregex.
745 .It Va WITHOUT_GOOGLETEST
746 Set to neither build nor install
753 as part of the base system.
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.
762 and related utilities.
764 Set to build Hesiod support.
766 Set to not build HTML docs.
767 .It Va WITHOUT_HYPERV
768 Set to not build or install HyperV utilities.
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.
773 Set to build or install HyperV utilities.
775 This is a default setting on
776 amd64/amd64 and i386/i386.
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
784 The option does not work for build targets.
787 Set to not build programs and libraries related to IPv4 networking.
788 When set, it enforces these options:
792 .Va WITHOUT_INET_SUPPORT
796 programs and libraries related to IPv6 networking.
797 When set, it enforces these options:
801 .Va WITHOUT_INET6_SUPPORT
803 .It Va WITHOUT_INET6_SUPPORT
804 Set to build libraries, programs, and kernel modules without IPv6 support.
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
816 The option does not work for build targets.
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
824 The user still must set the
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.
830 Set to not build IPFW tools.
831 .It Va WITHOUT_IPSEC_SUPPORT
832 Set to not build the kernel with
835 This option is needed for
842 and related utilities.
844 Set to not build tools for the support of jails; e.g.,
851 .It Va WITHOUT_KERBEROS
852 Set this to not build Kerberos 5 (KTH Heimdal).
853 When set, these options are also in effect:
856 .It Va WITHOUT_GSSAPI
860 .It Va WITHOUT_KERBEROS_SUPPORT
862 .Va WITH_KERBEROS_SUPPORT
865 .It Va WITHOUT_KERBEROS_SUPPORT
866 Set to build some programs without Kerberos support, like
872 .It Va WITH_KERNEL_RETPOLINE
873 Set to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
875 .It Va WITHOUT_KERNEL_SYMBOLS
876 Set to not install kernel symbol files.
878 This option is recommended for those people who have small root partitions.
883 library as a part of the base system.
885 The option has no effect yet.
887 When set, these options are also in effect:
890 .It Va WITHOUT_KVM_SUPPORT
895 .It Va WITHOUT_KVM_SUPPORT
896 Set to build some programs without optional
900 Setting this variable will prevent the LDNS library from being built.
901 When set, it enforces these options:
905 .Va WITHOUT_LDNS_UTILS
909 .It Va WITHOUT_LDNS_UTILS
910 Setting this variable will prevent building the LDNS utilities
914 .It Va WITHOUT_LEGACY_CONSOLE
915 Set to not build programs that support a legacy PC console; e.g.,
920 On 64-bit platforms, set to not build 32-bit library set and a
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
933 When set, it enforces these options:
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
948 Set to not build LLVM's lld linker.
950 Set to not build the LLDB debugger.
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.
955 Set to build the LLDB debugger.
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
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.
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.
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.
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.
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
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.
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:
1000 .It Va WITHOUT_LLVM_TARGET_AARCH64
1002 .Va WITH_LLVM_TARGET_AARCH64
1004 .It Va WITHOUT_LLVM_TARGET_ARM
1006 .Va WITH_LLVM_TARGET_ARM
1008 .It Va WITHOUT_LLVM_TARGET_MIPS
1010 .Va WITH_LLVM_TARGET_MIPS
1012 .It Va WITHOUT_LLVM_TARGET_POWERPC
1014 .Va WITH_LLVM_TARGET_POWERPC
1016 .It Va WITHOUT_LLVM_TARGET_RISCV
1018 .Va WITH_LLVM_TARGET_RISCV
1020 .It Va WITHOUT_LLVM_TARGET_SPARC
1022 .Va WITH_LLVM_TARGET_SPARC
1025 .It Va WITHOUT_LLVM_TARGET_ARM
1026 Set to not build LLVM target support for ARM.
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.
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.
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.
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.
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.
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.
1059 option should be used rather than this in most cases.
1060 .It Va WITH_LOADER_EFI_SECUREBOOT
1063 with support for verification based on certificates obtained from UEFI.
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
1071 .It Va WITHOUT_LOADER_GELI
1072 Disable inclusion of GELI crypto support in the boot chain binaries.
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.
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.
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.
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.
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.
1099 This is a default setting on
1100 powerpc/powerpc and powerpc/powerpc64.
1101 .It Va WITHOUT_LOADER_UBOOT
1102 Disable building of ubldr.
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
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.
1116 .It Va WITH_LOADER_VERIEXEC
1119 with support for verification similar to Verified Exec.
1123 When set, these options are also in effect:
1126 .It Va WITH_LOADER_EFI_SECUREBOOT
1128 .Va WITHOUT_LOADER_EFI_SECUREBOOT
1131 .It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
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.
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
1144 .It Va WITHOUT_LOCATE
1147 and related programs.
1151 and related programs.
1152 .It Va WITHOUT_LS_COLORS
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.
1159 Set to not build any mail support (MUA or MTA).
1160 When set, it enforces these options:
1166 .Va WITHOUT_MAILWRAPPER
1168 .Va WITHOUT_SENDMAIL
1170 .It Va WITHOUT_MAILWRAPPER
1171 Set to not build the
1177 and related support files.
1178 .It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
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.
1189 Set to not build manual pages.
1190 When set, these options are also in effect:
1193 .It Va WITHOUT_MAN_UTILS
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,
1208 and related support files.
1209 .It Va WITH_META_MODE
1212 meta files when building, which can provide a reliable incremental build when
1215 The meta file is created in OBJDIR as
1217 These meta files track the command that was executed, its output, and the
1221 module is required unless
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
1230 The command to execute changes.
1232 The current working directory changes.
1234 The target's meta file is missing.
1236 The target's meta file is missing filemon data when filemon is loaded
1237 and a previous run did not have it loaded.
1241 Files read, executed or linked to are newer than the target.
1245 Files read, written, executed or linked are missing.
1247 The meta files can also be useful for debugging.
1249 The build hides commands that are executed unless
1254 to show some of its environment for further debugging.
1256 The build operates as it normally would otherwise.
1257 This option originally invoked a different build system but that was renamed
1259 .Va WITH_DIRDEPS_BUILD .
1261 This must be set in the environment, make command line, or
1262 .Pa /etc/src-env.conf ,
1265 .It Va WITHOUT_MLX5TOOL
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
1275 This is a default setting on
1276 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
1278 Set to not build programs and libraries
1279 related to NDIS emulation support.
1280 .It Va WITHOUT_NETCAT
1284 .It Va WITHOUT_NETGRAPH
1285 Set to not build applications to support
1287 When set, it enforces these options:
1293 .Va WITHOUT_BLUETOOTH
1296 When set, these options are also in effect:
1299 .It Va WITHOUT_NETGRAPH_SUPPORT
1301 .Va WITH_NETGRAPH_SUPPORT
1304 .It Va WITHOUT_NETGRAPH_SUPPORT
1305 Set to build libraries, programs, and kernel modules without netgraph support.
1309 support and related programs.
1310 If set, you might need to adopt your
1316 Set to not build NLS catalogs.
1317 When set, it enforces these options:
1321 .Va WITHOUT_NLS_CATALOGS
1323 .It Va WITHOUT_NLS_CATALOGS
1324 Set to not build NLS catalog support for
1326 .It Va WITHOUT_NS_CACHING
1327 Set to disable name caching in the
1330 The generic caching daemon,
1332 will not be built either if this option is set.
1336 and related programs.
1338 Set to not build nvme related tools and kernel modules.
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.
1343 Set to build nvme related tools and kernel modules.
1346 This is a default setting on
1347 amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
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.
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.
1364 Set to build LLVM's OpenMP runtime.
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:
1378 .Va WITHOUT_KERBEROS
1380 .Va WITHOUT_KERBEROS_SUPPORT
1384 .Va WITHOUT_LDNS_UTILS
1391 When set, these options are also in effect:
1394 .It Va WITHOUT_GSSAPI
1400 Set to not build PAM library and modules.
1402 This option is deprecated and does nothing.
1404 When set, these options are also in effect:
1407 .It Va WITHOUT_PAM_SUPPORT
1409 .Va WITH_PAM_SUPPORT
1412 .It Va WITHOUT_PAM_SUPPORT
1413 Set to build some programs without PAM support, particularly
1418 Set to not build PF firewall package.
1419 When set, it enforces these options:
1426 Build dynamically linked binaries as
1427 Position-Independent Executable (PIE).
1428 .It Va WITHOUT_PKGBOOTSTRAP
1435 and related programs.
1436 .It Va WITHOUT_PORTSNAP
1437 Set to not build or install
1440 When set, it enforces these options:
1444 .Va WITHOUT_FREEBSD_UPDATE
1449 and related programs.
1450 .It Va WITHOUT_PROFILE
1451 Set to not build profiled libraries for use with
1454 This is a default setting on
1455 mips/mips64el, mips/mips64, mips/mips64elhf and mips/mips64hf.
1457 Set to build profiled libraries for use with
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
1465 and related programs.
1466 .It Va WITHOUT_RADIUS_SUPPORT
1467 Set to not build radius support into various applications, like
1471 .It Va WITH_RATELIMIT
1472 Set to build the system with rate limit support.
1475 .Dv SO_MAX_PACING_RATE
1483 .It Va WITHOUT_RBOOTD
1484 Set to not build or install
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
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
1500 .It Va WITH_RPCBIND_WARMSTART_SUPPORT
1503 with warmstart support.
1504 .It Va WITHOUT_SENDMAIL
1507 and related programs.
1508 .It Va WITHOUT_SERVICESDB
1510 .Pa /var/db/services.db .
1511 .It Va WITHOUT_SETUID_LOGIN
1512 Set this to disable the installation of
1514 as a set-user-ID root program.
1515 .It Va WITHOUT_SHAREDOCS
1516 Set to not build the
1519 .It Va WITHOUT_SHARED_TOOLCHAIN
1520 Set to build the toolchain binaries as statically linked executables.
1524 and necessary utilities like assembler, linker and library archive manager.
1525 .It Va WITH_SORT_THREADS
1526 Set to enable threads in
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:
1534 .Va WITHOUT_SOURCELESS_HOST
1536 .Va WITHOUT_SOURCELESS_UCODE
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.
1543 Set to not build world with propolice stack smashing protection.
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.
1548 Set to build world with propolice stack smashing protection.
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.
1553 Enable staging of files to a stage tree.
1554 This can be best thought of as auto-install to
1556 with some extra meta data to ensure dependencies can be tracked.
1558 .Va WITH_DIRDEPS_BUILD .
1559 When set, these options are also in effect:
1562 .It Va WITH_STAGING_MAN
1564 .Va WITHOUT_STAGING_MAN
1566 .It Va WITH_STAGING_PROG
1568 .Va WITHOUT_STAGING_PROG
1572 This must be set in the environment, make command line, or
1573 .Pa /etc/src-env.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
1585 and dependent binaries.
1591 .It Va WITHOUT_SVNLITE
1594 and related programs.
1595 .It Va WITHOUT_SYMVER
1596 Set to disable symbol versioning when building shared libraries.
1597 .It Va WITHOUT_SYSCONS
1600 support files such as keyboard maps, fonts, and screen output maps.
1602 Enable use of sysroot during build.
1604 .Va WITH_DIRDEPS_BUILD .
1606 This must be set in the environment, make command line, or
1607 .Pa /etc/src-env.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.
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.
1632 .Va WITHOUT_BINUTILS
1633 options control those.
1635 This option is only relevant when
1636 .Va WITH_LLD_BOOTSTRAP
1639 Set to not build or install
1643 .It Va WITHOUT_TCP_WRAPPERS
1644 Set to not build or install
1646 and related utilities.
1648 Set to not build and install
1652 .It Va WITHOUT_TELNET
1655 and related programs.
1656 .It Va WITHOUT_TESTS
1657 Set to not build nor install the
1664 This also disables the build of all test-related dependencies, including ATF.
1665 When set, it enforces these options:
1669 .Va WITHOUT_DTRACE_TESTS
1672 When set, these options are also in effect:
1675 .It Va WITHOUT_GOOGLETEST
1679 .It Va WITHOUT_TESTS_SUPPORT
1681 .Va WITH_TESTS_SUPPORT
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:
1690 .Va WITHOUT_GOOGLETEST
1692 .It Va WITHOUT_TEXTPROC
1694 programs used for text processing.
1696 Set to not build or install
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:
1708 .Va WITHOUT_BINUTILS
1712 .Va WITHOUT_CLANG_EXTRAS
1714 .Va WITHOUT_CLANG_FULL
1720 .Va WITHOUT_INCLUDES
1726 .Va WITHOUT_LLVM_COV
1728 .It Va WITHOUT_UNBOUND
1731 and related programs.
1732 .It Va WITHOUT_UNIFIED_OBJDIR
1733 Set to use the historical object directory format for
1736 For native-builds and builds done directly in sub-directories the format of
1737 .Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1739 while for cross-builds
1740 .Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1743 This option is transitional and will be removed before the 12.0 release,
1745 .va WITH_UNIFIED_OBJDIR
1746 will be enabled permanently.
1748 This must be set in the environment, make command line, or
1749 .Pa /etc/src-env.conf ,
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
1765 .It Va WITH_VERIEXEC
1768 which loads the contents of verified manifests into the kernel
1775 Set to not build and install vi, view, ex and related programs.
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
1785 .It Va WITHOUT_WIRELESS
1786 Set to not build programs used for 802.11 wireless networks; especially
1787 .Xr wpa_supplicant 8
1790 When set, these options are also in effect:
1793 .It Va WITHOUT_WIRELESS_SUPPORT
1795 .Va WITH_WIRELESS_SUPPORT
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
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).
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:
1815 .Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
1817 .Va WITHOUT_ZONEINFO_OLD_TIMEZONES_SUPPORT
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
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
1842 This manual page was autogenerated by
1843 .An tools/build/options/makeman .