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