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