xref: /freebsd/share/man/man5/src.conf.5 (revision cdfe874a109607fab0e4cd345b5fce399049b6f2)
1.\" DO NOT EDIT-- this file is generated by tools/build/options/makeman.
2.\" $FreeBSD$
3.Dd May 30, 2017
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
77as they are environment-only variables.
78Note that
79.Va MAKEOBJDIRPREFIX
80may be set here only when using
81.Va WITH_DIRDEPS_BUILD .
82.Pp
83The values of variables are ignored regardless of their setting;
84even if they would be set to
85.Dq Li FALSE
86or
87.Dq Li NO .
88The presence of an option causes
89it to be honored by
90.Xr make 1 .
91.Pp
92This list provides a name and short description for variables
93that can be used for source builds.
94.Bl -tag -width indent
95.It Va WITHOUT_ACCT
96Set to not build process accounting tools such as
97.Xr accton 8
98and
99.Xr sa 8 .
100.It Va WITHOUT_ACPI
101Set to not build
102.Xr acpiconf 8 ,
103.Xr acpidump 8
104and related programs.
105.It Va WITHOUT_AMD
106Set to not build
107.Xr amd 8 ,
108and related programs.
109.It Va WITHOUT_APM
110Set to not build
111.Xr apm 8 ,
112.Xr apmd 8
113and related programs.
114.It Va WITHOUT_ASSERT_DEBUG
115Set to compile programs and libraries without the
116.Xr assert 3
117checks.
118.It Va WITHOUT_AT
119Set to not build
120.Xr at 1
121and related utilities.
122.It Va WITHOUT_ATM
123Set to not build
124programs and libraries related to ATM networking.
125.It Va WITHOUT_AUDIT
126Set to not build audit support into system programs.
127.It Va WITHOUT_AUTHPF
128Set to not build
129.Xr authpf 8 .
130.It Va WITHOUT_AUTOFS
131Set to not build
132.Xr autofs 5
133related programs, libraries, and kernel modules.
134.It Va WITH_AUTO_OBJ
135Enable automatic creation of objdirs.
136.Pp
137This must be set in the environment, make command line, or
138.Pa /etc/src-env.conf ,
139not
140.Pa /etc/src.conf .
141.It Va WITHOUT_BHYVE
142Set to not build or install
143.Xr bhyve 8 ,
144associated utilities, and examples.
145.Pp
146This option only affects amd64/amd64.
147.It Va WITHOUT_BINUTILS
148Set to not build or install binutils (as, ld, objcopy, and objdump ) as part
149of the normal system build.
150The resulting system cannot build programs from source.
151.Pp
152This is a default setting on
153arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
154When set, it enforces these options:
155.Pp
156.Bl -item -compact
157.It
158.Va WITHOUT_GDB
159.El
160.It Va WITH_BINUTILS
161Set to build and install binutils (as, ld, objcopy, and objdump) as part
162of the normal system build.
163.Pp
164This is a default setting on
165amd64/amd64, arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
166.It Va WITHOUT_BINUTILS_BOOTSTRAP
167Set to not build binutils (as, ld, objcopy and objdump)
168as part of the bootstrap process.
169.Bf -symbolic
170The option does not work for build targets unless some alternative
171toolchain is provided.
172.Ef
173.Pp
174This is a default setting on
175arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
176.It Va WITH_BINUTILS_BOOTSTRAP
177Set build binutils (as, ld, objcopy and objdump)
178as part of the bootstrap process.
179.Pp
180This is a default setting on
181amd64/amd64, arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
182.It Va WITHOUT_BLACKLIST
183Set this if you do not want to build
184.Xr blacklistd 8
185and
186.Xr blacklistctl 8 .
187When set, it enforces these options:
188.Pp
189.Bl -item -compact
190.It
191.Va WITHOUT_BLACKLIST_SUPPORT
192.El
193.It Va WITHOUT_BLACKLIST_SUPPORT
194Set to build some programs without
195.Xr libblacklist 3
196support, like
197.Xr fingerd 8 ,
198.Xr ftpd 8 ,
199.Xr rlogind 8 ,
200.Xr rshd 8 ,
201and
202.Xr sshd 8 .
203.It Va WITHOUT_BLUETOOTH
204Set to not build Bluetooth related kernel modules, programs and libraries.
205.It Va WITHOUT_BOOT
206Set to not build the boot blocks and loader.
207.It Va WITHOUT_BOOTPARAMD
208Set to not build or install
209.Xr bootparamd 8 .
210.It Va WITHOUT_BOOTPD
211Set to not build or install
212.Xr bootpd 8 .
213.It Va WITHOUT_BSDINSTALL
214Set to not build
215.Xr bsdinstall 8 ,
216.Xr sade 8 ,
217and related programs.
218.It Va WITHOUT_BSD_CPIO
219Set to not build the BSD licensed version of cpio based on
220.Xr libarchive 3 .
221.It Va WITH_BSD_GREP
222Install BSD-licensed grep as '[ef]grep' instead of GNU grep.
223.It Va WITHOUT_BSD_GREP_FASTMATCH
224Set this option to exclude the fastmatch implementation from
225.Xr bsdgrep 1 ,
226instead using only
227.Xr regex 3 .
228.It Va WITHOUT_BSNMP
229Set to not build or install
230.Xr bsnmpd 1
231and related libraries and data files.
232.It Va WITHOUT_BZIP2
233Set to not build contributed bzip2 software as a part of the base system.
234.Bf -symbolic
235The option has no effect yet.
236.Ef
237When set, it enforces these options:
238.Pp
239.Bl -item -compact
240.It
241.Va WITHOUT_BZIP2_SUPPORT
242.El
243.It Va WITHOUT_BZIP2_SUPPORT
244Set to build some programs without optional bzip2 support.
245.It Va WITHOUT_CALENDAR
246Set to not build
247.Xr calendar 1 .
248.It Va WITHOUT_CAPSICUM
249Set to not build Capsicum support into system programs.
250When set, it enforces these options:
251.Pp
252.Bl -item -compact
253.It
254.Va WITHOUT_CASPER
255.El
256.It Va WITHOUT_CASPER
257Set to not build Casper program and related libraries.
258.It Va WITH_CCACHE_BUILD
259Set to use
260.Xr ccache 1
261for the build.
262No configuration is required except to install the
263.Sy devel/ccache
264package.
265When using with
266.Xr distcc 1 ,
267set
268.Sy CCACHE_PREFIX=/usr/local/bin/distcc .
269The default cache directory of
270.Pa $HOME/.ccache
271will be used, which can be overridden by setting
272.Sy CCACHE_DIR .
273The
274.Sy CCACHE_COMPILERCHECK
275option defaults to
276.Sy content
277when using the in-tree bootstrap compiler,
278and
279.Sy mtime
280when using an external compiler.
281The
282.Sy CCACHE_CPP2
283option is used for Clang but not GCC.
284.Pp
285Sharing a cache between multiple work directories requires using a layout
286similar to
287.Pa /some/prefix/src
288.Pa /some/prefix/obj
289and an environment such as:
290.Bd -literal -offset indent
291CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
292.Ed
293.Pp
294See
295.Xr ccache 1
296for more configuration options.
297.It Va WITHOUT_CCD
298Set to not build
299.Xr geom_ccd 4
300and related utilities.
301.It Va WITHOUT_CDDL
302Set to not build code licensed under Sun's CDDL.
303When set, it enforces these options:
304.Pp
305.Bl -item -compact
306.It
307.Va WITHOUT_CTF
308.It
309.Va WITHOUT_ZFS
310.El
311.It Va WITHOUT_CLANG
312Set to not build the Clang C/C++ compiler during the regular phase of the build.
313.Pp
314This is a default setting on
315riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
316When set, it enforces these options:
317.Pp
318.Bl -item -compact
319.It
320.Va WITHOUT_CLANG_EXTRAS
321.It
322.Va WITHOUT_CLANG_FULL
323.El
324.It Va WITH_CLANG
325Set to build the Clang C/C++ compiler during the normal phase of the build.
326.Pp
327This is a default setting on
328amd64/amd64, arm/arm, arm/armeb, arm/armv6, 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 and powerpc/powerpcspe.
329.It Va WITHOUT_CLANG_BOOTSTRAP
330Set to not build the Clang C/C++ compiler during the bootstrap phase of
331the build.
332To be able to build the system, either gcc or clang bootstrap must be
333enabled unless an alternate compiler is provided via XCC.
334.Pp
335This is a default setting on
336mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
337.It Va WITH_CLANG_BOOTSTRAP
338Set to build the Clang C/C++ compiler during the bootstrap phase of the build.
339.Pp
340This is a default setting on
341amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64 and i386/i386.
342.It Va WITH_CLANG_EXTRAS
343Set to build additional clang and llvm tools, such as bugpoint.
344.It Va WITHOUT_CLANG_FULL
345Set to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
346the Clang C/C++ compiler.
347.Pp
348This is a default setting on
349riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
350.It Va WITH_CLANG_FULL
351Set to build the ARCMigrate, Rewriter and StaticAnalyzer components of the
352Clang C/C++ compiler.
353.Pp
354This is a default setting on
355amd64/amd64, arm/arm, arm/armeb, arm/armv6, 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 and powerpc/powerpcspe.
356.It Va WITHOUT_CLANG_IS_CC
357Set to install the GCC compiler as
358.Pa /usr/bin/cc ,
359.Pa /usr/bin/c++
360and
361.Pa /usr/bin/cpp .
362.Pp
363This is a default setting on
364mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
365.It Va WITH_CLANG_IS_CC
366Set to install the Clang C/C++ compiler as
367.Pa /usr/bin/cc ,
368.Pa /usr/bin/c++
369and
370.Pa /usr/bin/cpp .
371.Pp
372This is a default setting on
373amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64 and i386/i386.
374.It Va WITHOUT_CPP
375Set to not build
376.Xr cpp 1 .
377.It Va WITHOUT_CROSS_COMPILER
378Set to not build any cross compiler in the cross-tools stage of buildworld.
379When compiling a different version of
380.Fx
381than what is installed on the system, provide an alternate
382compiler with XCC to ensure success.
383When compiling with an identical version of
384.Fx
385to the host, this option may be safely used.
386This option may also be safe when the host version of
387.Fx
388is close to the sources being built, but all bets are off if there have
389been any changes to the toolchain between the versions.
390When set, it enforces these options:
391.Pp
392.Bl -item -compact
393.It
394.Va WITHOUT_BINUTILS_BOOTSTRAP
395.It
396.Va WITHOUT_CLANG_BOOTSTRAP
397.It
398.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
399.It
400.Va WITHOUT_GCC_BOOTSTRAP
401.El
402.It Va WITHOUT_CRYPT
403Set to not build any crypto code.
404When set, it enforces these options:
405.Pp
406.Bl -item -compact
407.It
408.Va WITHOUT_KERBEROS
409.It
410.Va WITHOUT_KERBEROS_SUPPORT
411.It
412.Va WITHOUT_OPENSSH
413.It
414.Va WITHOUT_OPENSSL
415.El
416.Pp
417When set, these options are also in effect:
418.Pp
419.Bl -inset -compact
420.It Va WITHOUT_GSSAPI
421(unless
422.Va WITH_GSSAPI
423is set explicitly)
424.El
425.It Va WITH_CTF
426Set to compile with CTF (Compact C Type Format) data.
427CTF data encapsulates a reduced form of debugging information
428similar to DWARF and the venerable stabs and is required for DTrace.
429.It Va WITHOUT_CTM
430Set to not build
431.Xr ctm 1
432and related utilities.
433.It Va WITHOUT_CUSE
434Set to not build CUSE-related programs and libraries.
435.It Va WITHOUT_CXGBETOOL
436Set to not build
437.Xr cxgbetool 8
438.Pp
439This is a default setting on
440arm/arm, arm/armeb, arm/armv6, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpcspe, riscv/riscv64 and riscv/riscv64sf.
441.It Va WITH_CXGBETOOL
442Set to build
443.Xr cxgbetool 8
444.Pp
445This is a default setting on
446amd64/amd64, arm64/aarch64, i386/i386, powerpc/powerpc64 and sparc64/sparc64.
447.It Va WITHOUT_CXX
448Set to not build
449.Xr c++ 1
450and related libraries.
451It will also prevent building of
452.Xr gperf 1
453and
454.Xr devd 8 .
455.Pp
456This is a default setting on
457riscv/riscv64 and riscv/riscv64sf.
458When set, it enforces these options:
459.Pp
460.Bl -item -compact
461.It
462.Va WITHOUT_CLANG
463.It
464.Va WITHOUT_CLANG_EXTRAS
465.It
466.Va WITHOUT_CLANG_FULL
467.It
468.Va WITHOUT_DTRACE_TESTS
469.It
470.Va WITHOUT_GNUCXX
471.It
472.Va WITHOUT_GROFF
473.It
474.Va WITHOUT_TESTS
475.It
476.Va WITHOUT_TESTS_SUPPORT
477.El
478.It Va WITH_CXX
479Set to build
480.Xr c++ 1
481and related libraries.
482.Pp
483This is a default setting on
484amd64/amd64, arm/arm, arm/armeb, arm/armv6, 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, powerpc/powerpcspe and sparc64/sparc64.
485.It Va WITHOUT_DEBUG_FILES
486Set to avoid building or installing standalone debug files for each
487executable binary and shared library.
488.It Va WITHOUT_DIALOG
489Set to not build
490.Xr dialog 1 ,
491.Xr dialog 3 ,
492.Xr dpv 1 ,
493and
494.Xr dpv 3 .
495When set, it enforces these options:
496.Pp
497.Bl -item -compact
498.It
499.Va WITHOUT_BSDINSTALL
500.El
501.It Va WITHOUT_DICT
502Set to not build the Webster dictionary files.
503.It Va WITH_DIRDEPS_BUILD
504This is an experimental build system.
505For details see
506http://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
507Build commands can be seen from the top-level with:
508.Dl make show-valid-targets
509The build is driven by dirdeps.mk using
510.Va DIRDEPS
511stored in
512Makefile.depend files found in each directory.
513.Pp
514The build can be started from anywhere, and behaves the same.
515The initial instance of
516.Xr make 1
517recursively reads
518.Va DIRDEPS
519from
520.Pa Makefile.depend ,
521computing a graph of tree dependencies from the current origin.
522Setting
523.Va NO_DIRDEPS
524skips checking dirdep dependencies and will only build in the current
525and child directories.
526.Va NO_DIRDEPS_BELOW
527skips building any dirdeps and only build the current directory.
528.Pp
529This also utilizes the
530.Va WITH_META_MODE
531logic for incremental builds.
532.Pp
533The build hides commands executed unless
534.Va NO_SILENT
535is defined.
536.Pp
537Note that there is currently no mass install feature for this.
538.Pp
539When set, it enforces these options:
540.Pp
541.Bl -item -compact
542.It
543.Va WITH_INSTALL_AS_USER
544.El
545.Pp
546When set, these options are also in effect:
547.Pp
548.Bl -inset -compact
549.It Va WITH_AUTO_OBJ
550(unless
551.Va WITHOUT_AUTO_OBJ
552is set explicitly)
553.It Va WITH_META_MODE
554(unless
555.Va WITHOUT_META_MODE
556is set explicitly)
557.It Va WITH_STAGING
558(unless
559.Va WITHOUT_STAGING
560is set explicitly)
561.It Va WITH_STAGING_MAN
562(unless
563.Va WITHOUT_STAGING_MAN
564is set explicitly)
565.It Va WITH_STAGING_PROG
566(unless
567.Va WITHOUT_STAGING_PROG
568is set explicitly)
569.It Va WITH_SYSROOT
570(unless
571.Va WITHOUT_SYSROOT
572is set explicitly)
573.El
574.Pp
575This must be set in the environment, make command line, or
576.Pa /etc/src-env.conf ,
577not
578.Pa /etc/src.conf .
579.It Va WITH_DIRDEPS_CACHE
580Cache result of dirdeps.mk which can save significant time
581for subsequent builds.
582Depends on
583.Va WITH_DIRDEPS_BUILD .
584.Pp
585This must be set in the environment, make command line, or
586.Pa /etc/src-env.conf ,
587not
588.Pa /etc/src.conf .
589.It Va WITHOUT_DMAGENT
590Set to not build dma Mail Transport Agent.
591.It Va WITHOUT_DOCCOMPRESS
592Set to not install compressed system documentation.
593Only the uncompressed version will be installed.
594.It Va WITH_DTRACE_TESTS
595Set to build and install the DTrace test suite in
596.Pa /usr/tests/cddl/usr.sbin/dtrace .
597This test suite is considered experimental on architectures other than
598amd64/amd64 and running it may cause system instability.
599.It Va WITHOUT_DYNAMICROOT
600Set this if you do not want to link
601.Pa /bin
602and
603.Pa /sbin
604dynamically.
605.It Va WITHOUT_ED_CRYPTO
606Set to build
607.Xr ed 1
608without support for encryption/decryption.
609.It Va WITHOUT_EE
610Set to not build and install
611.Xr edit 1 ,
612.Xr ee 1 ,
613and related programs.
614.It Va WITHOUT_EFI
615Set not to build
616.Xr efivar 3
617and
618.Xr efivar 8 .
619.Pp
620This is a default setting on
621mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
622.It Va WITH_EFI
623Set to build
624.Xr efivar 3
625and
626.Xr efivar 8 .
627.Pp
628This is a default setting on
629amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64 and i386/i386.
630.It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
631Set to not build ELF Tool Chain tools
632(addr2line, nm, size, strings and strip)
633as part of the bootstrap process.
634.Bf -symbolic
635An alternate bootstrap tool chain must be provided.
636.Ef
637.It Va WITHOUT_EXAMPLES
638Set to avoid installing examples to
639.Pa /usr/share/examples/ .
640.It Va WITH_EXTRA_TCP_STACKS
641Set to build extra TCP stack modules.
642.It Va WITHOUT_FDT
643Set to not build Flattened Device Tree support as part of the base system.
644This includes the device tree compiler (dtc) and libfdt support library.
645.It Va WITHOUT_FILE
646Set to not build
647.Xr file 1
648and related programs.
649.It Va WITHOUT_FINGER
650Set to not build or install
651.Xr finger 1
652and
653.Xr fingerd 8 .
654.It Va WITHOUT_FLOPPY
655Set to not build or install programs
656for operating floppy disk driver.
657.It Va WITHOUT_FMTREE
658Set to not build and install
659.Pa /usr/sbin/fmtree .
660.It Va WITHOUT_FORMAT_EXTENSIONS
661Set to not enable
662.Fl fformat-extensions
663when compiling the kernel.
664Also disables all format checking.
665.It Va WITHOUT_FORTH
666Set to build bootloaders without Forth support.
667.It Va WITHOUT_FP_LIBC
668Set to build
669.Nm libc
670without floating-point support.
671.It Va WITHOUT_FREEBSD_UPDATE
672Set to not build
673.Xr freebsd-update 8 .
674.It Va WITHOUT_FTP
675Set to not build or install
676.Xr ftp 1
677and
678.Xr ftpd 8 .
679.It Va WITHOUT_GAMES
680Set to not build games.
681.It Va WITHOUT_GCC
682Set to not build and install gcc and g++ as part of the normal build process.
683.Pp
684This is a default setting on
685amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
686.It Va WITH_GCC
687Set to build and install gcc and g++.
688.Pp
689This is a default setting on
690mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
691.It Va WITHOUT_GCC_BOOTSTRAP
692Set to not build gcc and g++ as part of the bootstrap process.
693You must enable either gcc or clang bootstrap to be able to build the system,
694unless an alternative compiler is provided via
695XCC.
696.Pp
697This is a default setting on
698amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
699.It Va WITH_GCC_BOOTSTRAP
700Set to build gcc and g++ as part of the bootstrap process.
701.Pp
702This is a default setting on
703mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
704.It Va WITHOUT_GCOV
705Set to not build the
706.Xr gcov 1
707tool.
708.It Va WITHOUT_GDB
709Set to not build
710.Xr gdb 1 .
711.Pp
712This is a default setting on
713arm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
714.It Va WITH_GDB
715Set to build
716.Xr gdb 1 .
717.Pp
718This is a default setting on
719amd64/amd64, arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
720.It Va WITHOUT_GDB_LIBEXEC
721Set to install
722.Xr gdb 1
723into
724.Pa /usr/bin .
725.Pp
726This is a default setting on
727arm/arm, arm/armeb, arm/armv6 and sparc64/sparc64.
728.It Va WITH_GDB_LIBEXEC
729Set to install
730.Xr gdb 1
731into
732.Pa /usr/libexec .
733This permits
734.Xr gdb 1
735to be used as a fallback for
736.Xr crashinfo 8
737if a newer version is not installed.
738.Pp
739This is a default setting on
740amd64/amd64, 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, powerpc/powerpcspe, riscv/riscv64 and riscv/riscv64sf.
741.It Va WITHOUT_GNUCXX
742Do not build the GNU C++ stack (g++, libstdc++).
743This is the default on platforms where clang is the system compiler.
744.Pp
745This is a default setting on
746amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
747.It Va WITH_GNUCXX
748Build the GNU C++ stack (g++, libstdc++).
749This is the default on platforms where gcc is the system compiler.
750.Pp
751This is a default setting on
752mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
753.It Va WITHOUT_GNU_DIFF
754Set to not build GNU
755.Xr diff 1
756and
757.Xr diff3 1 .
758.It Va WITHOUT_GNU_GREP
759Set to not build GNU
760.Xr grep 1 .
761.It Va WITH_GNU_GREP_COMPAT
762Set this option to include GNU extensions in
763.Xr bsdgrep 1
764by linking against libgnuregex.
765.It Va WITHOUT_GPIO
766Set to not build
767.Xr gpioctl 8
768as part of the base system.
769.It Va WITHOUT_GPL_DTC
770Set to build the BSD licensed version of the device tree compiler rather
771than the GPLed one from elinux.org.
772.It Va WITHOUT_GROFF
773Set to not build
774.Xr groff 1
775and
776.Xr vgrind 1 .
777You should consider installing the textproc/groff port to not break
778.Xr man 1 .
779.Pp
780This is a default setting on
781riscv/riscv64 and riscv/riscv64sf.
782.It Va WITH_GROFF
783Set to build
784.Xr groff 1
785and
786.Xr vgrind 1 .
787.Pp
788This is a default setting on
789amd64/amd64, arm/arm, arm/armeb, arm/armv6, 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, powerpc/powerpcspe and sparc64/sparc64.
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 WITHOUT_HYPERV
801Set to not build or install HyperV utilities.
802.It Va WITHOUT_ICONV
803Set to not build iconv as part of libc.
804.It Va WITHOUT_INCLUDES
805Set to not install header files.
806This option used to be spelled
807.Va NO_INCS .
808.Bf -symbolic
809The option does not work for build targets.
810.Ef
811.It Va WITHOUT_INET
812Set to not build programs and libraries related to IPv4 networking.
813When set, it enforces these options:
814.Pp
815.Bl -item -compact
816.It
817.Va WITHOUT_INET_SUPPORT
818.El
819.It Va WITHOUT_INET6
820Set to not build
821programs and libraries related to IPv6 networking.
822When set, it enforces these options:
823.Pp
824.Bl -item -compact
825.It
826.Va WITHOUT_INET6_SUPPORT
827.El
828.It Va WITHOUT_INET6_SUPPORT
829Set to build libraries, programs, and kernel modules without IPv6 support.
830.It Va WITHOUT_INETD
831Set to not build
832.Xr inetd 8 .
833.It Va WITHOUT_INET_SUPPORT
834Set to build libraries, programs, and kernel modules without IPv4 support.
835.It Va WITHOUT_INSTALLLIB
836Set this to not install optional libraries.
837For example, when creating a
838.Xr nanobsd 8
839image.
840.Bf -symbolic
841The option does not work for build targets.
842.Ef
843.It Va WITH_INSTALL_AS_USER
844Set to make install targets succeed for non-root users by installing
845files with owner and group attributes set to that of the user running
846the
847.Xr make 1
848command.
849The user still must set the
850.Va DESTDIR
851variable to point to a directory where the user has write permissions.
852.It Va WITHOUT_IPFILTER
853Set to not build IP Filter package.
854.It Va WITHOUT_IPFW
855Set to not build IPFW tools.
856.It Va WITHOUT_IPSEC_SUPPORT
857Set to not build the kernel with
858.Xr ipsec 4
859support.
860This option is needed for
861.Xr ipsec 4
862and
863.Xr tcpmd5 4 .
864.It Va WITHOUT_ISCSI
865Set to not build
866.Xr iscid 8
867and related utilities.
868.It Va WITHOUT_JAIL
869Set to not build tools for the support of jails; e.g.,
870.Xr jail 8 .
871.It Va WITHOUT_KDUMP
872Set to not build
873.Xr kdump 1
874and
875.Xr truss 1 .
876.It Va WITHOUT_KERBEROS
877Set this to not build Kerberos 5 (KTH Heimdal).
878When set, it enforces these options:
879.Pp
880.Bl -item -compact
881.It
882.Va WITHOUT_KERBEROS_SUPPORT
883.El
884.Pp
885When set, these options are also in effect:
886.Pp
887.Bl -inset -compact
888.It Va WITHOUT_GSSAPI
889(unless
890.Va WITH_GSSAPI
891is set explicitly)
892.El
893.It Va WITHOUT_KERBEROS_SUPPORT
894Set to build some programs without Kerberos support, like
895.Xr ssh 1 ,
896.Xr telnet 1 ,
897.Xr sshd 8 ,
898and
899.Xr telnetd 8 .
900.It Va WITHOUT_KERNEL_SYMBOLS
901Set to not install kernel symbol files.
902.Bf -symbolic
903This option is recommended for those people who have small root partitions.
904.Ef
905.It Va WITHOUT_KVM
906Set to not build the
907.Nm libkvm
908library as a part of the base system.
909.Bf -symbolic
910The option has no effect yet.
911.Ef
912When set, it enforces these options:
913.Pp
914.Bl -item -compact
915.It
916.Va WITHOUT_KVM_SUPPORT
917.El
918.It Va WITHOUT_KVM_SUPPORT
919Set to build some programs without optional
920.Nm libkvm
921support.
922.It Va WITHOUT_LDNS
923Setting this variable will prevent the LDNS library from being built.
924When set, it enforces these options:
925.Pp
926.Bl -item -compact
927.It
928.Va WITHOUT_LDNS_UTILS
929.It
930.Va WITHOUT_UNBOUND
931.El
932.It Va WITHOUT_LDNS_UTILS
933Setting this variable will prevent building the LDNS utilities
934.Xr drill 1
935and
936.Xr host 1 .
937.It Va WITHOUT_LEGACY_CONSOLE
938Set to not build programs that support a legacy PC console; e.g.,
939.Xr kbdcontrol 1
940and
941.Xr vidcontrol 1 .
942.It Va WITHOUT_LIB32
943On 64-bit platforms, set to not build 32-bit library set and a
944.Nm ld-elf32.so.1
945runtime linker.
946.It Va WITHOUT_LIBCPLUSPLUS
947Set to avoid building libcxxrt and libc++.
948.It Va WITHOUT_LIBPTHREAD
949Set to not build the
950.Nm libpthread
951providing library,
952.Nm libthr .
953When set, it enforces these options:
954.Pp
955.Bl -item -compact
956.It
957.Va WITHOUT_LIBTHR
958.El
959.It Va WITH_LIBSOFT
960On armv6 only, set to enable soft float ABI compatibility libraries.
961This option is for transitioning to the new hard float ABI.
962.It Va WITHOUT_LIBTHR
963Set to not build the
964.Nm libthr
965(1:1 threading)
966library.
967.It Va WITHOUT_LLD
968Set to not build LLVM's lld linker.
969.Pp
970This is a default setting on
971mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
972.It Va WITH_LLD
973Set to build LLVM's lld linker.
974.Pp
975This is a default setting on
976amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64 and i386/i386.
977.It Va WITHOUT_LLDB
978Set to not build the LLDB debugger.
979.Pp
980This is a default setting on
981arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
982.It Va WITH_LLDB
983Set to build the LLDB debugger.
984.Pp
985This is a default setting on
986amd64/amd64 and arm64/aarch64.
987.It Va WITHOUT_LLD_BOOTSTRAP
988Set to not build the LLD linker during the bootstrap phase of
989the build.
990To be able to build the system, either Binutils or LLD bootstrap must be
991enabled unless an alternate linker is provided via XLD.
992.Pp
993This is a default setting on
994amd64/amd64, arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
995.It Va WITH_LLD_BOOTSTRAP
996Set to build the LLD linker during the bootstrap phase of the build.
997.Pp
998This is a default setting on
999arm64/aarch64.
1000.It Va WITHOUT_LLD_IS_LD
1001Set to use GNU binutils ld as the system linker, instead of LLVM's LLD.
1002.Pp
1003This is a default setting on
1004amd64/amd64, arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
1005.It Va WITH_LLD_IS_LD
1006Set to use LLVM's LLD as the system linker, instead of GNU binutils ld.
1007.Pp
1008This is a default setting on
1009arm64/aarch64.
1010.It Va WITHOUT_LLVM_LIBUNWIND
1011Set to use GCC's stack unwinder (instead of LLVM's libunwind).
1012.Pp
1013This is a default setting on
1014arm/arm, arm/armeb, arm/armv6, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
1015.It Va WITH_LLVM_LIBUNWIND
1016Set to use LLVM's libunwind stack unwinder (instead of GCC's unwinder).
1017.Pp
1018This is a default setting on
1019amd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1020.It Va WITHOUT_LOCALES
1021Set to not build localization files; see
1022.Xr locale 1 .
1023.It Va WITHOUT_LOCATE
1024Set to not build
1025.Xr locate 1
1026and related programs.
1027.It Va WITHOUT_LPR
1028Set to not build
1029.Xr lpr 1
1030and related programs.
1031.It Va WITHOUT_LS_COLORS
1032Set to build
1033.Xr ls 1
1034without support for colors to distinguish file types.
1035.It Va WITHOUT_LZMA_SUPPORT
1036Set to build some programs without optional lzma compression support.
1037.It Va WITHOUT_MAIL
1038Set to not build any mail support (MUA or MTA).
1039When set, it enforces these options:
1040.Pp
1041.Bl -item -compact
1042.It
1043.Va WITHOUT_DMAGENT
1044.It
1045.Va WITHOUT_MAILWRAPPER
1046.It
1047.Va WITHOUT_SENDMAIL
1048.El
1049.It Va WITHOUT_MAILWRAPPER
1050Set to not build the
1051.Xr mailwrapper 8
1052MTA selector.
1053.It Va WITHOUT_MAKE
1054Set to not install
1055.Xr make 1
1056and related support files.
1057.It Va WITHOUT_MAN
1058Set to not build manual pages.
1059When set, these options are also in effect:
1060.Pp
1061.Bl -inset -compact
1062.It Va WITHOUT_MAN_UTILS
1063(unless
1064.Va WITH_MAN_UTILS
1065is set explicitly)
1066.El
1067.It Va WITHOUT_MANCOMPRESS
1068Set to not to install compressed man pages.
1069Only the uncompressed versions will be installed.
1070.It Va WITHOUT_MAN_UTILS
1071Set to not build utilities for manual pages,
1072.Xr apropos 1 ,
1073.Xr catman 1 ,
1074.Xr makewhatis 1 ,
1075.Xr man 1 ,
1076.Xr whatis 1 ,
1077.Xr manctl 8 ,
1078and related support files.
1079.It Va WITH_META_MODE
1080Create
1081.Xr make 1
1082meta files when building, which can provide a reliable incremental build when
1083using
1084.Xr filemon 4 .
1085The meta file is created in OBJDIR as
1086.Pa target.meta .
1087These meta files track the command that was executed, its output, and the
1088current directory.
1089The
1090.Xr filemon 4
1091module is required unless
1092.Va NO_FILEMON
1093is defined.
1094When the module is loaded, any files used by the commands executed are
1095tracked as dependencies for the target in its meta file.
1096The target is considered out-of-date and rebuilt if any of these
1097conditions are true compared to the last build:
1098.Bl -bullet -compact
1099.It
1100The command to execute changes.
1101.It
1102The current working directory changes.
1103.It
1104The target's meta file is missing.
1105.It
1106The target's meta file is missing filemon data when filemon is loaded
1107and a previous run did not have it loaded.
1108.It
1109[requires
1110.Xr filemon 4 ]
1111Files read, executed or linked to are newer than the target.
1112.It
1113[requires
1114.Xr filemon 4 ]
1115Files read, written, executed or linked are missing.
1116.El
1117The meta files can also be useful for debugging.
1118.Pp
1119The build hides commands that are executed unless
1120.Va NO_SILENT
1121is defined.
1122Errors cause
1123.Xr make 1
1124to show some of its environment for further debugging.
1125.Pp
1126The build operates as it normally would otherwise.
1127This option originally invoked a different build system but that was renamed
1128to
1129.Va WITH_DIRDEPS_BUILD .
1130.Pp
1131This must be set in the environment, make command line, or
1132.Pa /etc/src-env.conf ,
1133not
1134.Pa /etc/src.conf .
1135.It Va WITH_NAND
1136Set to build the NAND Flash components.
1137.It Va WITHOUT_NDIS
1138Set to not build programs and libraries
1139related to NDIS emulation support.
1140.It Va WITHOUT_NETCAT
1141Set to not build
1142.Xr nc 1
1143utility.
1144.It Va WITHOUT_NETGRAPH
1145Set to not build applications to support
1146.Xr netgraph 4 .
1147When set, it enforces these options:
1148.Pp
1149.Bl -item -compact
1150.It
1151.Va WITHOUT_ATM
1152.It
1153.Va WITHOUT_BLUETOOTH
1154.It
1155.Va WITHOUT_NETGRAPH_SUPPORT
1156.El
1157.It Va WITHOUT_NETGRAPH_SUPPORT
1158Set to build libraries, programs, and kernel modules without netgraph support.
1159.It Va WITHOUT_NIS
1160Set to not build
1161.Xr NIS 8
1162support and related programs.
1163If set, you might need to adopt your
1164.Xr nsswitch.conf 5
1165and remove
1166.Sq nis
1167entries.
1168.It Va WITHOUT_NLS
1169Set to not build NLS catalogs.
1170.It Va WITHOUT_NLS_CATALOGS
1171Set to not build NLS catalog support for
1172.Xr csh 1 .
1173.It Va WITHOUT_NS_CACHING
1174Set to disable name caching in the
1175.Pa nsswitch
1176subsystem.
1177The generic caching daemon,
1178.Xr nscd 8 ,
1179will not be built either if this option is set.
1180.It Va WITHOUT_NTP
1181Set to not build
1182.Xr ntpd 8
1183and related programs.
1184.It Va WITH_OFED
1185Set to build the
1186.Dq "OpenFabrics Enterprise Distribution"
1187Infiniband software stack.
1188.It Va WITH_OPENLDAP
1189Enable building openldap support for kerberos.
1190.It Va WITHOUT_OPENSSH
1191Set to not build OpenSSH.
1192.It Va WITHOUT_OPENSSL
1193Set to not build OpenSSL.
1194When set, it enforces these options:
1195.Pp
1196.Bl -item -compact
1197.It
1198.Va WITHOUT_KERBEROS
1199.It
1200.Va WITHOUT_KERBEROS_SUPPORT
1201.It
1202.Va WITHOUT_OPENSSH
1203.El
1204.Pp
1205When set, these options are also in effect:
1206.Pp
1207.Bl -inset -compact
1208.It Va WITHOUT_GSSAPI
1209(unless
1210.Va WITH_GSSAPI
1211is set explicitly)
1212.El
1213.It Va WITHOUT_PAM
1214Set to not build PAM library and modules.
1215.Bf -symbolic
1216This option is deprecated and does nothing.
1217.Ef
1218When set, it enforces these options:
1219.Pp
1220.Bl -item -compact
1221.It
1222.Va WITHOUT_PAM_SUPPORT
1223.El
1224.It Va WITHOUT_PAM_SUPPORT
1225Set to build some programs without PAM support, particularly
1226.Xr ftpd 8
1227and
1228.Xr ppp 8 .
1229.It Va WITHOUT_PC_SYSINSTALL
1230Set to not build
1231.Xr pc-sysinstall 8
1232and related programs.
1233.It Va WITHOUT_PF
1234Set to not build PF firewall package.
1235When set, it enforces these options:
1236.Pp
1237.Bl -item -compact
1238.It
1239.Va WITHOUT_AUTHPF
1240.El
1241.It Va WITHOUT_PKGBOOTSTRAP
1242Set to not build
1243.Xr pkg 7
1244bootstrap tool.
1245.It Va WITHOUT_PMC
1246Set to not build
1247.Xr pmccontrol 8
1248and related programs.
1249.It Va WITHOUT_PORTSNAP
1250Set to not build or install
1251.Xr portsnap 8
1252and related files.
1253.It Va WITHOUT_PPP
1254Set to not build
1255.Xr ppp 8
1256and related programs.
1257.It Va WITHOUT_PROFILE
1258Set to not build profiled libraries for use with
1259.Xr gprof 8 .
1260.Pp
1261This is a default setting on
1262riscv/riscv64 and riscv/riscv64sf.
1263.It Va WITH_PROFILE
1264Set to build profiled libraries for use with
1265.Xr gprof 8 .
1266.Pp
1267This is a default setting on
1268amd64/amd64, arm/arm, arm/armeb, arm/armv6, 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, powerpc/powerpcspe and sparc64/sparc64.
1269.It Va WITHOUT_QUOTAS
1270Set to not build
1271.Xr quota 1
1272and related programs.
1273.It Va WITHOUT_RADIUS_SUPPORT
1274Set to not build radius support into various applications, like
1275.Xr pam_radius 8
1276and
1277.Xr ppp 8 .
1278.It Va WITH_RATELIMIT
1279Set to build the system with rate limit support.
1280.Pp
1281This makes
1282.Dv SO_MAX_PACING_RATE
1283effective in
1284.Xr getsockopt 2 ,
1285and
1286.Ar txrlimit
1287support in
1288.Xr ifconfig 8 ,
1289by proxy.
1290.It Va WITHOUT_RBOOTD
1291Set to not build or install
1292.Xr rbootd 8 .
1293.It Va WITHOUT_RCMDS
1294Disable building of the
1295.Bx
1296r-commands.
1297This includes
1298.Xr rlogin 1 ,
1299.Xr rsh 1 ,
1300etc.
1301.It Va WITH_REPRODUCIBLE_BUILD
1302Set to exclude build metadata (such as the build time, user, or host)
1303from the kernel, boot loaders, and uname output, so that builds produce
1304bit-for-bit identical output.
1305.It Va WITHOUT_RESCUE
1306Set to not build
1307.Xr rescue 8 .
1308.It Va WITHOUT_ROUTED
1309Set to not build
1310.Xr routed 8
1311utility.
1312.It Va WITH_RPCBIND_WARMSTART_SUPPORT
1313Set to build
1314.Xr rpcbind 8
1315with warmstart support.
1316.It Va WITHOUT_SENDMAIL
1317Set to not build
1318.Xr sendmail 8
1319and related programs.
1320.It Va WITHOUT_SETUID_LOGIN
1321Set this to disable the installation of
1322.Xr login 1
1323as a set-user-ID root program.
1324.It Va WITHOUT_SHAREDOCS
1325Set to not build the
1326.Bx 4.4
1327legacy docs.
1328.It Va WITH_SHARED_TOOLCHAIN
1329Set to build the toolchain binaries shared.
1330The set includes
1331.Xr cc 1 ,
1332.Xr make 1
1333and necessary utilities like assembler, linker and library archive manager.
1334.It Va WITH_SORT_THREADS
1335Set to enable threads in
1336.Xr sort 1 .
1337.It Va WITHOUT_SOURCELESS
1338Set to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1339When set, it enforces these options:
1340.Pp
1341.Bl -item -compact
1342.It
1343.Va WITHOUT_SOURCELESS_HOST
1344.It
1345.Va WITHOUT_SOURCELESS_UCODE
1346.El
1347.It Va WITHOUT_SOURCELESS_HOST
1348Set to not build kernel modules that include sourceless native code for host CPU.
1349.It Va WITHOUT_SOURCELESS_UCODE
1350Set to not build kernel modules that include sourceless microcode.
1351.It Va WITHOUT_SSP
1352Set to not build world with propolice stack smashing protection.
1353.Pp
1354This is a default setting on
1355mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf and mips/mips64hf.
1356.It Va WITH_SSP
1357Set to build world with propolice stack smashing protection.
1358.Pp
1359This is a default setting on
1360amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
1361.It Va WITH_STAGING
1362Enable staging of files to a stage tree.
1363This can be best thought of as auto-install to
1364.Va DESTDIR
1365with some extra meta data to ensure dependencies can be tracked.
1366Depends on
1367.Va WITH_DIRDEPS_BUILD .
1368When set, these options are also in effect:
1369.Pp
1370.Bl -inset -compact
1371.It Va WITH_STAGING_MAN
1372(unless
1373.Va WITHOUT_STAGING_MAN
1374is set explicitly)
1375.It Va WITH_STAGING_PROG
1376(unless
1377.Va WITHOUT_STAGING_PROG
1378is set explicitly)
1379.El
1380.Pp
1381This must be set in the environment, make command line, or
1382.Pa /etc/src-env.conf ,
1383not
1384.Pa /etc/src.conf .
1385.It Va WITH_STAGING_MAN
1386Enable staging of man pages to stage tree.
1387.It Va WITH_STAGING_PROG
1388Enable staging of PROGs to stage tree.
1389.It Va WITH_STALE_STAGED
1390Check staged files are not stale.
1391.It Va WITH_SVN
1392Set to install
1393.Xr svnlite 1
1394as
1395.Xr svn 1 .
1396.It Va WITHOUT_SVNLITE
1397Set to not build
1398.Xr svnlite 1
1399and related programs.
1400.It Va WITHOUT_SYMVER
1401Set to disable symbol versioning when building shared libraries.
1402.It Va WITHOUT_SYSCONS
1403Set to not build
1404.Xr syscons 4
1405support files such as keyboard maps, fonts, and screen output maps.
1406.It Va WITH_SYSROOT
1407Enable use of sysroot during build.
1408Depends on
1409.Va WITH_DIRDEPS_BUILD .
1410.Pp
1411This must be set in the environment, make command line, or
1412.Pa /etc/src-env.conf ,
1413not
1414.Pa /etc/src.conf .
1415.It Va WITHOUT_SYSTEM_COMPILER
1416Set to not opportunistically skip building a cross-compiler during the
1417bootstrap phase of the build.
1418Normally, if the currently installed compiler matches the planned bootstrap
1419compiler type and revision, then it will not be built.
1420This does not prevent a compiler from being built for installation though,
1421only for building one for the build itself.
1422The
1423.Va WITHOUT_CLANG
1424and
1425.Va WITHOUT_GCC
1426options control those.
1427.It Va WITHOUT_TALK
1428Set to not build or install
1429.Xr talk 1
1430and
1431.Xr talkd 8 .
1432.It Va WITHOUT_TCP_WRAPPERS
1433Set to not build or install
1434.Xr tcpd 8 ,
1435and related utilities.
1436.It Va WITHOUT_TCSH
1437Set to not build and install
1438.Pa /bin/csh
1439(which is
1440.Xr tcsh 1 ) .
1441.It Va WITHOUT_TELNET
1442Set to not build
1443.Xr telnet 1
1444and related programs.
1445.It Va WITHOUT_TESTS
1446Set to not build nor install the
1447.Fx
1448Test Suite in
1449.Pa /usr/tests/ .
1450See
1451.Xr tests 7
1452for more details.
1453This also disables the build of all test-related dependencies, including ATF.
1454.Pp
1455This is a default setting on
1456riscv/riscv64 and riscv/riscv64sf.
1457When set, it enforces these options:
1458.Pp
1459.Bl -item -compact
1460.It
1461.Va WITHOUT_DTRACE_TESTS
1462.It
1463.Va WITHOUT_TESTS_SUPPORT
1464.El
1465.It Va WITHOUT_TESTS_SUPPORT
1466Set to disables the build of all test-related dependencies, including ATF.
1467.Pp
1468This is a default setting on
1469riscv/riscv64 and riscv/riscv64sf.
1470.It Va WITHOUT_TEXTPROC
1471Set to not build
1472programs used for text processing.
1473When set, it enforces these options:
1474.Pp
1475.Bl -item -compact
1476.It
1477.Va WITHOUT_GROFF
1478.El
1479.It Va WITHOUT_TFTP
1480Set to not build or install
1481.Xr tftp 1
1482and
1483.Xr tftpd 8 .
1484.It Va WITHOUT_TIMED
1485Set to not build or install
1486.Xr timed 8 .
1487.It Va WITHOUT_TOOLCHAIN
1488Set to not install header or
1489programs used for program development,
1490compilers, debuggers etc.
1491When set, it enforces these options:
1492.Pp
1493.Bl -item -compact
1494.It
1495.Va WITHOUT_BINUTILS
1496.It
1497.Va WITHOUT_CLANG
1498.It
1499.Va WITHOUT_CLANG_EXTRAS
1500.It
1501.Va WITHOUT_CLANG_FULL
1502.It
1503.Va WITHOUT_GCC
1504.It
1505.Va WITHOUT_GDB
1506.It
1507.Va WITHOUT_INCLUDES
1508.It
1509.Va WITHOUT_LLD
1510.It
1511.Va WITHOUT_LLDB
1512.El
1513.It Va WITHOUT_UNBOUND
1514Set to not build
1515.Xr unbound 8
1516and related programs.
1517.It Va WITHOUT_USB
1518Set to not build USB-related programs and libraries.
1519.It Va WITHOUT_USB_GADGET_EXAMPLES
1520Set to not build USB gadget kernel modules.
1521.It Va WITHOUT_UTMPX
1522Set to not build user accounting tools such as
1523.Xr last 1 ,
1524.Xr users 1 ,
1525.Xr who 1 ,
1526.Xr ac 8 ,
1527.Xr lastlogin 8
1528and
1529.Xr utx 8 .
1530.It Va WITHOUT_VI
1531Set to not build and install vi, view, ex and related programs.
1532.It Va WITHOUT_VT
1533Set to not build
1534.Xr vt 4
1535support files (fonts and keymaps).
1536.It Va WITHOUT_WARNS
1537Set this to not add warning flags to the compiler invocations.
1538Useful as a temporary workaround when code enters the tree
1539which triggers warnings in environments that differ from the
1540original developer.
1541.It Va WITHOUT_WIRELESS
1542Set to not build programs used for 802.11 wireless networks; especially
1543.Xr wpa_supplicant 8
1544and
1545.Xr hostapd 8 .
1546When set, it enforces these options:
1547.Pp
1548.Bl -item -compact
1549.It
1550.Va WITHOUT_WIRELESS_SUPPORT
1551.El
1552.It Va WITHOUT_WIRELESS_SUPPORT
1553Set to build libraries, programs, and kernel modules without
1554802.11 wireless support.
1555.It Va WITHOUT_WPA_SUPPLICANT_EAPOL
1556Build
1557.Xr wpa_supplicant 8
1558without support for the IEEE 802.1X protocol and without
1559support for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
1560protocols (usable only via 802.1X).
1561.It Va WITHOUT_ZFS
1562Set to not build ZFS file system.
1563.It Va WITHOUT_ZONEINFO
1564Set to not build the timezone database.
1565.El
1566.Sh FILES
1567.Bl -tag -compact -width Pa
1568.It Pa /etc/src.conf
1569.It Pa /etc/src-env.conf
1570.It Pa /usr/share/mk/bsd.own.mk
1571.El
1572.Sh SEE ALSO
1573.Xr make 1 ,
1574.Xr make.conf 5 ,
1575.Xr build 7 ,
1576.Xr ports 7
1577.Sh HISTORY
1578The
1579.Nm
1580file appeared in
1581.Fx 7.0 .
1582.Sh AUTHORS
1583This manual page was autogenerated by
1584.An tools/build/options/makeman .
1585