Disable LLD_IS_LD option combinations that fail
authoremaste <emaste@FreeBSD.org>
Thu, 9 Feb 2017 14:47:34 +0000 (14:47 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 9 Feb 2017 14:47:34 +0000 (14:47 +0000)
commit91728c7f76b8382af5777753d3dbfe31169c5b05
treead217f5127456433a326248f09e9df97187980e0
parentd90ffe724a25ec3dd7fa76d727bae30c4f74b847
Disable LLD_IS_LD option combinations that fail

If WITH_LLD is disabled LLD is not built and cannot be installed as
/usr/bin/ld, so disable WITH_LLD_IS_LD.

Currently we do not compare the LLD host/in-tree version and LLD
requires the LLVM libraries to be built, so force WITH_SYSTEM_COMPILER
off when WITH_LLD_IS_LD is set.

The logic for bootstrapping LLD requires some tidying later. We should
be able to detect that the host linker is the same version and avoid
building LLD in the same way that WITH_SYSTEM_COMPILER handles Clang.
We also may be able to extend libllvmminimal to meet LLD's needs.  For
now this change unbreaks buildworld with default settings except for
WITH_LLD_IS_LD.

Reported by: Shawn Webb
Reviewed by: bdrewery
Tested by: Shawn Webb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D9487
share/mk/src.opts.mk