2014-05-06 04:21:48 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Option file for FreeBSD /usr/src builds.
|
|
|
|
#
|
|
|
|
# Users define WITH_FOO and WITHOUT_FOO on the command line or in /etc/src.conf
|
|
|
|
# and /etc/make.conf files. These translate in the build system to MK_FOO={yes,no}
|
|
|
|
# with sensible (usually) defaults.
|
|
|
|
#
|
|
|
|
# Makefiles must include bsd.opts.mk after defining specific MK_FOO options that
|
|
|
|
# are applicable for that Makefile (typically there are none, but sometimes there
|
|
|
|
# are exceptions). Recursive makes usually add MK_FOO=no for options that they wish
|
|
|
|
# to omit from that make.
|
|
|
|
#
|
2014-12-12 18:54:31 +00:00
|
|
|
# Makefiles must include bsd.mkopt.mk before they test the value of any MK_FOO
|
2014-05-06 04:21:48 +00:00
|
|
|
# variable.
|
|
|
|
#
|
2014-05-06 04:22:01 +00:00
|
|
|
# Makefiles may also assume that this file is included by src.opts.mk should it
|
2014-05-06 04:21:48 +00:00
|
|
|
# need variables defined there prior to the end of the Makefile where
|
|
|
|
# bsd.{subdir,lib.bin}.mk is traditionally included.
|
|
|
|
#
|
|
|
|
# The old-style YES_FOO and NO_FOO are being phased out. No new instances of them
|
|
|
|
# should be added. Old instances should be removed since they were just to
|
|
|
|
# bridge the gap between FreeBSD 4 and FreeBSD 5.
|
|
|
|
#
|
|
|
|
# Makefiles should never test WITH_FOO or WITHOUT_FOO directly (although an
|
|
|
|
# exception is made for _WITHOUT_SRCONF which turns off this mechanism
|
2014-05-09 21:11:27 +00:00
|
|
|
# completely inside bsd.*.mk files).
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
.if !target(__<src.opts.mk>__)
|
|
|
|
__<src.opts.mk>__:
|
|
|
|
|
2014-05-09 04:49:48 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
# Define MK_* variables (which are either "yes" or "no") for users
|
|
|
|
# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
|
|
|
|
# make(1) environment.
|
|
|
|
# These should be tested with `== "no"' or `!= "no"' in makefiles.
|
|
|
|
# The NO_* variables should only be set by makefiles for variables
|
|
|
|
# that haven't been converted over.
|
|
|
|
#
|
|
|
|
|
2017-04-18 16:27:48 +00:00
|
|
|
# These options are used by the src builds
|
2014-05-06 04:21:48 +00:00
|
|
|
|
|
|
|
__DEFAULT_YES_OPTIONS = \
|
|
|
|
ACCT \
|
|
|
|
ACPI \
|
|
|
|
AMD \
|
|
|
|
APM \
|
|
|
|
AT \
|
|
|
|
ATM \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
2015-01-26 07:15:49 +00:00
|
|
|
AUTOFS \
|
2015-01-26 06:44:48 +00:00
|
|
|
BHYVE \
|
2014-05-06 04:21:48 +00:00
|
|
|
BINUTILS \
|
|
|
|
BINUTILS_BOOTSTRAP \
|
2016-06-02 19:06:04 +00:00
|
|
|
BLACKLIST \
|
2014-05-06 04:21:48 +00:00
|
|
|
BLUETOOTH \
|
|
|
|
BOOT \
|
2015-02-04 10:19:32 +00:00
|
|
|
BOOTPARAMD \
|
|
|
|
BOOTPD \
|
2014-05-06 04:21:48 +00:00
|
|
|
BSD_CPIO \
|
2017-04-21 14:36:09 +00:00
|
|
|
BSD_GREP_FASTMATCH \
|
2015-01-25 04:43:13 +00:00
|
|
|
BSDINSTALL \
|
2014-05-06 04:21:48 +00:00
|
|
|
BSNMP \
|
|
|
|
BZIP2 \
|
|
|
|
CALENDAR \
|
|
|
|
CAPSICUM \
|
|
|
|
CASPER \
|
2015-01-25 04:52:48 +00:00
|
|
|
CCD \
|
2014-05-06 04:21:48 +00:00
|
|
|
CDDL \
|
|
|
|
CPP \
|
|
|
|
CROSS_COMPILER \
|
|
|
|
CRYPT \
|
|
|
|
CTM \
|
2014-06-13 08:53:49 +00:00
|
|
|
CUSE \
|
2014-05-06 04:21:48 +00:00
|
|
|
CXX \
|
2016-09-27 18:08:38 +00:00
|
|
|
DIALOG \
|
2014-05-06 04:21:48 +00:00
|
|
|
DICT \
|
|
|
|
DMAGENT \
|
|
|
|
DYNAMICROOT \
|
|
|
|
ED_CRYPTO \
|
2015-01-25 00:03:44 +00:00
|
|
|
EE \
|
2016-10-11 22:30:41 +00:00
|
|
|
EFI \
|
2015-08-17 10:48:55 +00:00
|
|
|
ELFTOOLCHAIN_BOOTSTRAP \
|
2014-05-06 04:21:48 +00:00
|
|
|
EXAMPLES \
|
|
|
|
FDT \
|
2015-02-04 10:24:40 +00:00
|
|
|
FILE \
|
2015-02-04 10:19:32 +00:00
|
|
|
FINGER \
|
2014-05-06 04:21:48 +00:00
|
|
|
FLOPPY \
|
|
|
|
FMTREE \
|
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
|
|
|
FREEBSD_UPDATE \
|
2015-02-04 10:19:32 +00:00
|
|
|
FTP \
|
2014-05-06 04:21:48 +00:00
|
|
|
GAMES \
|
|
|
|
GCOV \
|
2017-04-25 18:08:56 +00:00
|
|
|
GDB \
|
2016-10-20 14:48:57 +00:00
|
|
|
GNU_DIFF \
|
|
|
|
GNU_GREP \
|
2014-05-06 04:21:48 +00:00
|
|
|
GPIO \
|
2015-01-26 06:27:07 +00:00
|
|
|
HAST \
|
2014-05-06 04:21:48 +00:00
|
|
|
HTML \
|
2014-10-16 00:33:06 +00:00
|
|
|
HYPERV \
|
2014-05-06 04:21:48 +00:00
|
|
|
ICONV \
|
|
|
|
INET \
|
|
|
|
INET6 \
|
2015-02-04 10:19:32 +00:00
|
|
|
INETD \
|
2014-05-06 04:21:48 +00:00
|
|
|
IPFILTER \
|
|
|
|
IPFW \
|
2015-01-25 04:20:11 +00:00
|
|
|
ISCSI \
|
2014-05-06 04:21:48 +00:00
|
|
|
JAIL \
|
|
|
|
KDUMP \
|
|
|
|
KVM \
|
|
|
|
LDNS \
|
|
|
|
LDNS_UTILS \
|
|
|
|
LEGACY_CONSOLE \
|
|
|
|
LIB32 \
|
|
|
|
LIBPTHREAD \
|
|
|
|
LIBTHR \
|
|
|
|
LOCALES \
|
|
|
|
LOCATE \
|
|
|
|
LPR \
|
|
|
|
LS_COLORS \
|
|
|
|
LZMA_SUPPORT \
|
|
|
|
MAIL \
|
|
|
|
MAILWRAPPER \
|
|
|
|
MAKE \
|
|
|
|
NDIS \
|
|
|
|
NETCAT \
|
|
|
|
NETGRAPH \
|
|
|
|
NLS_CATALOGS \
|
|
|
|
NS_CACHING \
|
|
|
|
NTP \
|
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
|
|
|
PC_SYSINSTALL \
|
|
|
|
PF \
|
|
|
|
PKGBOOTSTRAP \
|
|
|
|
PMC \
|
|
|
|
PORTSNAP \
|
|
|
|
PPP \
|
|
|
|
QUOTAS \
|
2015-02-04 06:53:45 +00:00
|
|
|
RADIUS_SUPPORT \
|
2015-02-04 10:19:32 +00:00
|
|
|
RBOOTD \
|
2014-05-06 04:21:48 +00:00
|
|
|
RESCUE \
|
|
|
|
ROUTED \
|
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
|
|
|
SOURCELESS \
|
|
|
|
SOURCELESS_HOST \
|
|
|
|
SOURCELESS_UCODE \
|
|
|
|
SVNLITE \
|
|
|
|
SYSCONS \
|
2016-06-24 19:55:59 +00:00
|
|
|
SYSTEM_COMPILER \
|
2015-01-25 04:37:44 +00:00
|
|
|
TALK \
|
2015-02-04 10:19:32 +00:00
|
|
|
TCP_WRAPPERS \
|
2014-05-06 04:21:48 +00:00
|
|
|
TCSH \
|
|
|
|
TELNET \
|
2014-07-16 21:40:11 +00:00
|
|
|
TESTS \
|
2014-05-06 04:21:48 +00:00
|
|
|
TEXTPROC \
|
2015-02-04 10:19:32 +00:00
|
|
|
TFTP \
|
|
|
|
TIMED \
|
2014-05-06 04:21:48 +00:00
|
|
|
UNBOUND \
|
|
|
|
USB \
|
|
|
|
UTMPX \
|
|
|
|
VI \
|
2014-06-30 00:20:12 +00:00
|
|
|
VT \
|
2014-05-06 04:21:48 +00:00
|
|
|
WIRELESS \
|
|
|
|
WPA_SUPPLICANT_EAPOL \
|
|
|
|
ZFS \
|
|
|
|
ZONEINFO
|
|
|
|
|
|
|
|
__DEFAULT_NO_OPTIONS = \
|
|
|
|
BSD_GREP \
|
|
|
|
CLANG_EXTRAS \
|
2015-08-02 00:37:33 +00:00
|
|
|
DTRACE_TESTS \
|
bsdgrep: disable GNU_GREP_COMPAT by default
The GNU extension bits in the base system are old, no longer faithful
to upstream, and surprising in some regards. Switch to documenting
WITH_GNU_GREP_COMPAT and default GNU_GREP_COMPAT to OFF in the name of
good behavior.
According to http://www.regular-expressions.info, GNU extensions:
- Add missing quantifiers to BREs: \?, \+
- Add branching to BREs: \|
- Add backreferences (\1 through \9) to EREs
- Add \w, \W, \s, and \S corresponding to :alnum:, [^[:alnum:]],
:space:, and [^[:space:]] respectively
- Add word boundaries and anchors:
\b: word boundary
\B: not word boundary
\<: Strt of word
\>: End of word
\`: Start of subject string
\': End of subject string
These extensions are still available in /usr/bin/grep by default today,
as it is still GNU grep. As part of the bsdgrep migration plan these
extensions may be added to bsdgrep's regex support if necessary.
Submitted by: Kyle Evans <kevans91 at ksu.edu>
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D10114
2017-04-21 14:50:29 +00:00
|
|
|
GNU_GREP_COMPAT \
|
2014-05-06 04:21:48 +00:00
|
|
|
HESIOD \
|
2016-01-03 04:32:04 +00:00
|
|
|
LIBSOFT \
|
2014-05-06 04:21:48 +00:00
|
|
|
NAND \
|
|
|
|
OFED \
|
|
|
|
OPENLDAP \
|
2017-07-01 10:04:42 +00:00
|
|
|
RCMDS \
|
2016-12-19 14:45:59 +00:00
|
|
|
REPRODUCIBLE_BUILD \
|
2017-04-19 20:45:46 +00:00
|
|
|
RPCBIND_WARMSTART_SUPPORT \
|
2014-05-06 04:21:48 +00:00
|
|
|
SHARED_TOOLCHAIN \
|
|
|
|
SORT_THREADS \
|
2016-05-21 01:32:23 +00:00
|
|
|
SVN \
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Default behaviour of some options depends on the architecture. Unfortunately
|
|
|
|
# this means that we have to test TARGET_ARCH (the buildworld case) as well
|
|
|
|
# as MACHINE_ARCH (the non-buildworld case). Normally TARGET_ARCH is not
|
|
|
|
# used at all in bsd.*.mk, but we have to make an exception here if we want
|
|
|
|
# to allow defaults for some things like clang to vary by target architecture.
|
|
|
|
# Additional, per-target behavior should be rarely added only after much
|
|
|
|
# gnashing of teeth and grinding of gears.
|
|
|
|
#
|
|
|
|
.if defined(TARGET_ARCH)
|
|
|
|
__T=${TARGET_ARCH}
|
|
|
|
.else
|
|
|
|
__T=${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
.if defined(TARGET)
|
|
|
|
__TT=${TARGET}
|
|
|
|
.else
|
|
|
|
__TT=${MACHINE}
|
|
|
|
.endif
|
Since clang 3.5.0 and later must be built by a compiler with C++11
support, make this explicit in src.opts.mk, by updating the default
settings.
The defaults become as follows:
* If the host compiler is not C++11 capable, use gcc and disable clang.
* On x86, enable clang, make it the default cc, and disable gcc.
* On little-endian ARM, enable clang, but not the full build, make it
the default cc, and disable gcc.
* On PowerPC, enable clang, but enable gcc and make that the default cc.
* On everything else, use gcc, and disable clang.
This can be amended later, if we get e.g. sparc64 or big-endian ARM
working with clang.
Reviewed by: imp, brooks
Differential Revision: https://reviews.freebsd.org/D1294
2014-12-10 22:33:57 +00:00
|
|
|
|
|
|
|
.include <bsd.compiler.mk>
|
2015-10-24 04:03:32 +00:00
|
|
|
# If the compiler is not C++11 capable, disable Clang and use GCC instead.
|
|
|
|
# This means that architectures that have GCC 4.2 as default can not
|
|
|
|
# build Clang without using an external compiler.
|
|
|
|
|
|
|
|
.if ${COMPILER_FEATURES:Mc++11} && (${__T} == "aarch64" || \
|
|
|
|
${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386")
|
|
|
|
# Clang is enabled, and will be installed as the default /usr/bin/cc.
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC LLD
|
2017-06-20 15:51:09 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX GPL_DTC
|
2017-07-01 19:10:59 +00:00
|
|
|
.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mriscv*} == "" && ${__T} != "sparc64"
|
2017-01-25 20:33:31 +00:00
|
|
|
# If an external compiler that supports C++11 is used as ${CC} and Clang
|
|
|
|
# supports the target, then Clang is enabled but GCC is installed as the
|
|
|
|
# default /usr/bin/cc.
|
Since clang 3.5.0 and later must be built by a compiler with C++11
support, make this explicit in src.opts.mk, by updating the default
settings.
The defaults become as follows:
* If the host compiler is not C++11 capable, use gcc and disable clang.
* On x86, enable clang, make it the default cc, and disable gcc.
* On little-endian ARM, enable clang, but not the full build, make it
the default cc, and disable gcc.
* On PowerPC, enable clang, but enable gcc and make that the default cc.
* On everything else, use gcc, and disable clang.
This can be amended later, if we get e.g. sparc64 or big-endian ARM
working with clang.
Reviewed by: imp, brooks
Differential Revision: https://reviews.freebsd.org/D1294
2014-12-10 22:33:57 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX
|
2017-06-20 15:51:09 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC GPL_DTC LLD
|
2014-05-06 04:21:48 +00:00
|
|
|
.else
|
2015-10-24 04:03:32 +00:00
|
|
|
# Everything else disables Clang, and uses GCC instead.
|
2017-06-20 15:51:09 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX GPL_DTC
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC LLD
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
2015-12-08 19:19:26 +00:00
|
|
|
# In-tree binutils/gcc are older versions without modern architecture support.
|
2016-11-16 15:21:32 +00:00
|
|
|
.if ${__T} == "aarch64" || ${__T:Mriscv*} != ""
|
2015-04-28 19:15:28 +00:00
|
|
|
BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB
|
2015-03-19 13:53:47 +00:00
|
|
|
.endif
|
2016-11-16 15:21:32 +00:00
|
|
|
.if ${__T:Mriscv*} != ""
|
2015-12-11 22:55:23 +00:00
|
|
|
BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"
|
|
|
|
BROKEN_OPTIONS+=TESTS # "undefined reference to `_Unwind_Resume'"
|
|
|
|
BROKEN_OPTIONS+=CXX # "libcxxrt.so: undefined reference to `_Unwind_Resume_or_Rethrow'"
|
|
|
|
.endif
|
2016-07-27 16:01:44 +00:00
|
|
|
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \
|
2016-11-16 15:21:32 +00:00
|
|
|
${__T:Mriscv*} != ""
|
2016-07-27 16:01:44 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
|
|
|
|
.endif
|
2016-11-25 13:15:28 +00:00
|
|
|
.if ${__T} == "aarch64"
|
2017-04-09 01:35:19 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
2016-11-25 13:15:28 +00:00
|
|
|
.else
|
2017-04-09 01:35:19 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
2016-11-25 13:15:28 +00:00
|
|
|
.endif
|
2015-12-16 19:23:10 +00:00
|
|
|
.if ${__T} == "aarch64" || ${__T} == "amd64"
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=LLDB
|
2015-12-16 19:23:10 +00:00
|
|
|
.else
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=LLDB
|
2015-12-16 19:23:10 +00:00
|
|
|
.endif
|
2015-04-24 22:04:59 +00:00
|
|
|
# LLVM lacks support for FreeBSD 64-bit atomic operations for ARMv4/ARMv5
|
|
|
|
.if ${__T} == "arm" || ${__T} == "armeb"
|
|
|
|
BROKEN_OPTIONS+=LLDB
|
|
|
|
.endif
|
2017-04-18 16:27:48 +00:00
|
|
|
# GDB in base is generally less functional than GDB in ports. Ports GDB
|
|
|
|
# does not yet contain kernel support for arm, and sparc64 kernel support
|
|
|
|
# has not been tested.
|
|
|
|
.if ${__T:Marm*} != "" || ${__T} == "sparc64"
|
2017-04-25 18:08:56 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=GDB_LIBEXEC
|
2017-04-18 16:27:48 +00:00
|
|
|
.else
|
2017-04-25 18:08:56 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=GDB_LIBEXEC
|
2017-04-18 16:27:48 +00:00
|
|
|
.endif
|
2016-01-03 04:32:04 +00:00
|
|
|
# Only doing soft float API stuff on armv6
|
|
|
|
.if ${__T} != "armv6"
|
|
|
|
BROKEN_OPTIONS+=LIBSOFT
|
|
|
|
.endif
|
2016-09-29 13:38:14 +00:00
|
|
|
.if ${__T:Mmips*}
|
2016-09-27 09:44:30 +00:00
|
|
|
BROKEN_OPTIONS+=SSP
|
|
|
|
.endif
|
2016-10-11 22:30:41 +00:00
|
|
|
.if ${__T:Mmips*} || ${__T:Mpowerpc*} || ${__T:Msparc64} || ${__T:Mriscv*}
|
|
|
|
BROKEN_OPTIONS+=EFI
|
|
|
|
.endif
|
2014-05-06 04:21:48 +00:00
|
|
|
|
2017-03-03 03:11:58 +00:00
|
|
|
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \
|
|
|
|
${__T} == "powerpc64" || ${__T} == "sparc64"
|
|
|
|
__DEFAULT_YES_OPTIONS+=CXGBETOOL
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=CXGBETOOL
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.include <bsd.mkopt.mk>
|
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options that default to "yes" if the compiler is a C++11 compiler.
|
|
|
|
#
|
|
|
|
.for var in \
|
|
|
|
LIBCPLUSPLUS
|
|
|
|
.if !defined(MK_${var})
|
|
|
|
.if ${COMPILER_FEATURES:Mc++11}
|
|
|
|
.if defined(WITHOUT_${var})
|
|
|
|
MK_${var}:= no
|
|
|
|
.else
|
|
|
|
MK_${var}:= yes
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
.if defined(WITH_${var})
|
|
|
|
MK_${var}:= yes
|
|
|
|
.else
|
|
|
|
MK_${var}:= no
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Force some options off if their dependencies are off.
|
|
|
|
# Order is somewhat important.
|
|
|
|
#
|
2016-09-23 13:21:29 +00:00
|
|
|
.if !${COMPILER_FEATURES:Mc++11}
|
|
|
|
MK_LLVM_LIBUNWIND:= no
|
|
|
|
.endif
|
|
|
|
|
2016-10-19 19:57:36 +00:00
|
|
|
.if ${MK_BINUTILS} == "no"
|
|
|
|
MK_GDB:= no
|
|
|
|
.endif
|
|
|
|
|
2016-12-10 13:29:51 +00:00
|
|
|
.if ${MK_CAPSICUM} == "no"
|
|
|
|
MK_CASPER:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_LIBPTHREAD} == "no"
|
|
|
|
MK_LIBTHR:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_LDNS} == "no"
|
|
|
|
MK_LDNS_UTILS:= no
|
|
|
|
MK_UNBOUND:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_SOURCELESS} == "no"
|
|
|
|
MK_SOURCELESS_HOST:= no
|
|
|
|
MK_SOURCELESS_UCODE:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CDDL} == "no"
|
|
|
|
MK_ZFS:= no
|
|
|
|
MK_CTF:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CRYPT} == "no"
|
|
|
|
MK_OPENSSL:= no
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CXX} == "no"
|
|
|
|
MK_CLANG:= no
|
2014-07-10 21:11:48 +00:00
|
|
|
MK_GNUCXX:= no
|
2016-08-22 17:45:30 +00:00
|
|
|
MK_TESTS:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
2016-09-27 18:08:38 +00:00
|
|
|
.if ${MK_DIALOG} == "no"
|
|
|
|
MK_BSDINSTALL:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_MAIL} == "no"
|
|
|
|
MK_MAILWRAPPER:= no
|
|
|
|
MK_SENDMAIL:= no
|
|
|
|
MK_DMAGENT:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NETGRAPH} == "no"
|
|
|
|
MK_ATM:= no
|
|
|
|
MK_BLUETOOTH:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_OPENSSL} == "no"
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PF} == "no"
|
|
|
|
MK_AUTHPF:= no
|
|
|
|
.endif
|
|
|
|
|
2015-08-02 00:37:33 +00:00
|
|
|
.if ${MK_TESTS} == "no"
|
|
|
|
MK_DTRACE_TESTS:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_CROSS_COMPILER} == "no"
|
|
|
|
MK_BINUTILS_BOOTSTRAP:= no
|
|
|
|
MK_CLANG_BOOTSTRAP:= no
|
2015-08-17 10:48:55 +00:00
|
|
|
MK_ELFTOOLCHAIN_BOOTSTRAP:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
MK_GCC_BOOTSTRAP:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_TOOLCHAIN} == "no"
|
|
|
|
MK_BINUTILS:= no
|
|
|
|
MK_CLANG:= no
|
|
|
|
MK_GCC:= no
|
|
|
|
MK_GDB:= no
|
2014-11-18 17:06:44 +00:00
|
|
|
MK_INCLUDES:= no
|
2017-04-10 18:21:30 +00:00
|
|
|
MK_LLD:= no
|
2016-03-25 22:36:29 +00:00
|
|
|
MK_LLDB:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CLANG} == "no"
|
|
|
|
MK_CLANG_EXTRAS:= no
|
|
|
|
MK_CLANG_FULL:= no
|
|
|
|
.endif
|
|
|
|
|
2017-01-02 19:55:18 +00:00
|
|
|
#
|
|
|
|
# MK_* options whose default value depends on another option.
|
|
|
|
#
|
|
|
|
.for vv in \
|
|
|
|
GSSAPI/KERBEROS \
|
|
|
|
MAN_UTILS/MAN
|
|
|
|
.if defined(WITH_${vv:H})
|
|
|
|
MK_${vv:H}:= yes
|
|
|
|
.elif defined(WITHOUT_${vv:H})
|
|
|
|
MK_${vv:H}:= no
|
|
|
|
.else
|
|
|
|
MK_${vv:H}:= ${MK_${vv:T}}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
# Set defaults for the MK_*_SUPPORT variables.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# MK_*_SUPPORT options which default to "yes" unless their corresponding
|
|
|
|
# MK_* variable is set to "no".
|
|
|
|
#
|
|
|
|
.for var in \
|
2016-06-02 19:06:04 +00:00
|
|
|
BLACKLIST \
|
2014-05-06 04:21:48 +00:00
|
|
|
BZIP2 \
|
|
|
|
INET \
|
|
|
|
INET6 \
|
|
|
|
KERBEROS \
|
|
|
|
KVM \
|
|
|
|
NETGRAPH \
|
|
|
|
PAM \
|
2014-10-22 03:39:11 +00:00
|
|
|
TESTS \
|
2014-05-06 04:21:48 +00:00
|
|
|
WIRELESS
|
|
|
|
.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
|
|
|
|
MK_${var}_SUPPORT:= no
|
|
|
|
.else
|
|
|
|
MK_${var}_SUPPORT:= yes
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if !${COMPILER_FEATURES:Mc++11}
|
|
|
|
MK_LLDB:= no
|
|
|
|
.endif
|
|
|
|
|
2014-10-21 20:00:49 +00:00
|
|
|
# gcc 4.8 and newer supports libc++, so suppress gnuc++ in that case.
|
|
|
|
# while in theory we could build it with that, we don't want to do
|
|
|
|
# that since it creates too much confusion for too little gain.
|
2016-06-15 23:58:03 +00:00
|
|
|
# XXX: This is incomplete and needs X_COMPILER_TYPE/VERSION checks too
|
|
|
|
# to prevent Makefile.inc1 from bootstrapping unneeded dependencies
|
|
|
|
# and to support 'make delete-old' when supplying an external toolchain.
|
2014-10-21 20:00:49 +00:00
|
|
|
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 40800
|
|
|
|
MK_GNUCXX:=no
|
|
|
|
MK_GCC:=no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
2014-10-21 20:00:49 +00:00
|
|
|
|
|
|
|
.endif # !target(__<src.opts.mk>__)
|