freebsd-skq/share/mk
bdrewery d3c990c645 Follow-up r320149: Enable GPL_DTC if we're using GCC as the cross-compiler.
This fixes object files landing in the source tree in gnu/usr.bin/dtc
for GCC platforms.

We cannot reliably detect if an external compiler is used here, and the
default YES option does include GCC_BOOTSTRAP which implies that GCC may
be used for the build.

The problem manifests when not using an external compiler, and the host
compiler is clang.  When a fresh build is done (no OBJDIR yet) the
'make obj' treewalk is done before 'make cross-tools', so
COMPILER_FEATURES at this point contains 'c++11' since the host compiler
was used for COMPILER_FEATURES.  Once cross-tools builds the GCC
bootstrap compiler and then descends into 'make everything',
COMPILER_FEATURES no longer contains 'c++11' and MK_GPL_DTC defaults to
enabled.  Now it builds in gnu/usr.bin/dtc without an OBJDIR preset and
drops files into the source tree.

The COMPILER_FEATURES check here is useful for knowing if we can *bootstrap*
C++11 things.  Indeed we do bootstrap dtc as a build tool so it is
useful for enabling the BSD dtc for the build, but we end up needing the
GPL dtc for installation anyway.

Reviewed by:	manu, emaste
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D12817
2017-10-31 00:03:32 +00:00
..
atf.test.mk
auto.obj.mk If MAKEOBJDIRPREFIX is a prefix match for .CURDIR, then __objdir is .CURDIR 2017-04-18 23:59:15 +00:00
bsd.arch.inc.mk
bsd.clang-analyze.mk
bsd.compiler.mk CCACHE_BUILD: Follow-up r321880: Fix some PATH issues with buildworld. 2017-08-01 18:26:20 +00:00
bsd.confs.mk DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie. 2016-12-03 05:29:35 +00:00
bsd.cpu.mk Support armv7 builds for userland 2017-10-05 23:01:33 +00:00
bsd.crunchgen.mk Quote ${MAKE} when passing in env in case it contains spaces. 2017-08-16 17:54:24 +00:00
bsd.dep.mk Use OBJS_SRCS_FILTER to control setting OBJS from SRCS 2017-09-16 05:42:27 +00:00
bsd.doc.mk Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
bsd.dtb.mk
bsd.endian.mk Add full softfloat and hardfloat support for MIPS. 2016-10-31 15:33:58 +00:00
bsd.files.mk Respect INSTALL_AS_USER for FILES. 2017-07-21 16:14:35 +00:00
bsd.incs.mk DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie. 2016-12-03 05:29:35 +00:00
bsd.info.mk
bsd.init.mk Use OBJS_SRCS_FILTER to control setting OBJS from SRCS 2017-09-16 05:42:27 +00:00
bsd.kmod.mk
bsd.lib.mk Improve computation of {BC,LL}OBJS. 2017-10-18 00:33:20 +00:00
bsd.libnames.mk Disconnect libstand from the build. 2017-10-09 22:12:57 +00:00
bsd.linker.mk lld 5.0 supports filter libraries, so enable linker feature flag 2017-07-24 15:39:09 +00:00
bsd.links.mk Re-remove excess / for installing SYMLINKS 2017-08-12 18:11:41 +00:00
bsd.man.mk
bsd.mkopt.mk
bsd.nls.mk
bsd.obj.mk cleandir: Fix ESTALE errors from parallel removals. 2017-07-25 00:12:48 +00:00
bsd.opts.mk Add limited sandbox capability to "make check" 2017-08-14 19:03:05 +00:00
bsd.own.mk Add SVNVERSION_CMD to bsd.own.mk, adding the capability to include 2017-08-11 19:21:40 +00:00
bsd.port.mk
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk Improve computation of {BC,LL}OBJS. 2017-10-18 00:33:20 +00:00
bsd.progs.mk PROGS: Fix ESTALE errors on NFS while cleaning in directories with PROGS. 2017-07-24 17:54:03 +00:00
bsd.README Add limited sandbox capability to "make check" 2017-08-14 19:03:05 +00:00
bsd.snmpmod.mk Add a make target (smilint) for running smilint tool against BMIBS 2017-01-17 03:38:49 +00:00
bsd.stand.mk Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
bsd.subdir.mk Similar to r296013 for NO_ROOT, force SUBDIR_PARALLEL for buildworld WORLDTMP staging. 2017-06-21 18:56:53 +00:00
bsd.suffixes-posix.mk Extract suffix rules into bsd.suffixes[-posix].mk. 2016-10-12 00:42:46 +00:00
bsd.suffixes.mk Revert r307823 (Use upstream suffixes for LLVM IR) for now. It causes a 2016-10-27 18:46:52 +00:00
bsd.symver.mk
bsd.sys.mk gcc builds: reenable -Wstrict-overflow for bsd.sys.mk 2017-09-14 03:41:49 +00:00
bsd.test.mk Sort the tests alphabetically before adding them to the Kyuafiles 2017-07-17 18:20:54 +00:00
dirdeps.mk Fix typo in comment. 2017-03-07 01:42:30 +00:00
gendirdeps.mk Update meta* from bmake-20161212 2016-12-23 02:57:00 +00:00
host-target.mk
install-new.mk
local.autodep.mk
local.dirdeps.mk
local.gendirdeps.mk DIRDEPS_BUILD: Clang headers are now in lib/clang/headers 2016-09-02 19:28:24 +00:00
local.init.mk
local.meta.sys.mk MAKEOBJDIR should be an absolute path, not any path with a slash. 2017-10-29 01:21:12 +00:00
local.sys.env.mk AUTO_OBJ: auto.obj.mk mkdir -p simplification 2017-10-29 01:21:36 +00:00
local.sys.mk Follow-up r320061: Need to respect make.conf/env LIBDIR overrides. 2017-06-19 18:08:02 +00:00
Makefile Add basic bsd.linker.mk auto included from bsd.compiler.mk. 2017-06-22 21:03:20 +00:00
meta2deps.py Fix syntax error in parse_path after r316952. 2017-05-08 20:44:21 +00:00
meta2deps.sh Update meta* from bmake-20161212 2016-12-23 02:57:00 +00:00
meta.autodep.mk When MAKEOBJDIRPREFIX points to a case-insensitive file system, the 2016-09-24 15:11:27 +00:00
meta.stage.mk Update dirdeps/meta bits from latest bmake. 2017-03-06 23:13:25 +00:00
meta.subdir.mk
meta.sys.mk Avoid clobbering existing value of META_COOKIE_TOUCH 2016-09-13 22:17:25 +00:00
netbsd-tests.test.mk
plain.test.mk
src.init.mk
src.libnames.mk Extract a set of pmcstat functions and interfaces to the new internal 2017-10-24 16:28:00 +00:00
src.opts.mk Follow-up r320149: Enable GPL_DTC if we're using GCC as the cross-compiler. 2017-10-31 00:03:32 +00:00
src.sys.env.mk WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta mode. 2016-08-25 23:55:56 +00:00
src.sys.mk
stage-install.sh
suite.test.mk Add limited sandbox capability to "make check" 2017-08-14 19:03:05 +00:00
sys.dependfile.mk
sys.mk Support armv7 builds for userland 2017-10-05 23:01:33 +00:00
tap.test.mk
version_gen.awk