freebsd-dev/share/mk
Dimitry Andric 0104753b7d 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
..
atf.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
bsd.arch.inc.mk Merge from tbemd 2010-06-11 02:50:53 +00:00
bsd.compiler.mk The previous commit should have been a logical or not a logical "and" 2014-12-08 03:32:26 +00:00
bsd.cpu.mk Set the correct architecture when targeting ARMv7 2014-12-01 21:07:36 +00:00
bsd.crunchgen.mk NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. 2014-04-25 19:25:18 +00:00
bsd.dep.mk The dependencies are computed with CC even if sources are C++, when building 2014-10-21 19:56:45 +00:00
bsd.doc.mk Move DOCCOMPRESS to MK variable. 2014-05-10 16:38:54 +00:00
bsd.endian.mk Clean up detection of big-endian ARM. In all cases we follow the pattern 2014-10-01 16:00:21 +00:00
bsd.files.mk Ensure files are created during the build when using bsd.subdir.mk. 2014-06-09 14:36:49 +00:00
bsd.incs.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
bsd.info.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.init.mk Include bsd.opts.mk before Makefile.inc so Makefile.inc can do things 2014-04-24 02:02:51 +00:00
bsd.kmod.mk Fix comma splice, can't ambiguity and quoting. 2012-02-16 21:04:47 +00:00
bsd.lib.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.libnames.mk Remove MINUSLPAM the LIBADD framework handles static dependencies just fine 2014-11-26 08:14:30 +00:00
bsd.links.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.man.mk Convert NO_MANCOMPRESSED to MK_MANCOMPRESSED. 2014-04-18 17:03:49 +00:00
bsd.mkopt.mk fix spelling of DEFAULT in comments... 2014-10-22 06:53:55 +00:00
bsd.nls.mk
bsd.obj.mk Ignore errors from rm -rf to support high -j builds. This is, at best, 2014-11-06 17:19:41 +00:00
bsd.opts.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
bsd.own.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.port.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.prog.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.progs.mk Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
bsd.README Make MLINKS text match text in bsd.man.mk added by wosch@ in 1996. 2014-11-21 17:55:38 +00:00
bsd.snmpmod.mk
bsd.subdir.mk Create a mechanism for providing fine-grained build order dependencies 2014-06-15 13:45:37 +00:00
bsd.symver.mk
bsd.sys.mk Ensure boot2 stays below the limit, by applying a patch from Roman 2014-11-24 20:01:05 +00:00
bsd.test.mk Fix the logic inversion in the previous commit by ensuring that the matched 2014-10-29 04:32:46 +00:00
Makefile Remove bsd.dtrace.mk. 2014-07-12 07:46:18 +00:00
netbsd-tests.test.mk Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
plain.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
src.libnames.mk Switch gpioctl(8) to LIBADD. 2014-12-03 03:05:15 +00:00
src.opts.mk Since clang 3.5.0 and later must be built by a compiler with C++11 2014-12-10 22:33:57 +00:00
src.sys.mk We do not ever want _srcconf_included_ as MAIN target. 2014-07-28 23:36:21 +00:00
suite.test.mk Move FreeBSD Test Suite-specific code to a suite.test.mk file. 2014-03-14 12:52:55 +00:00
sys.mk Add OBJDUMP to sys.mk. The EFI loader uses it however without this it can 2014-11-14 14:45:36 +00:00
tap.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
version_gen.awk