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