Add -fuse-ld=bfd/-fuse-ld=gold support to exec-tool.in
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 26 Nov 2013 13:31:25 +0000 (13:31 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 26 Nov 2013 13:31:25 +0000 (05:31 -0800)
commit40f213e6f5bf36a5678a1ff5a75773d02df67f53
tree39b9cfc7867e282de9048571b137b32b0c4f4c06
parent84c44566f3f16c29b65a007944e0d3ea81b48c34
Add -fuse-ld=bfd/-fuse-ld=gold support to exec-tool.in

PR bootstrap/55552
* configure.ac (install_gold_as_default): New.  Set to yes for
--disable-ld or --enable-gold=default.
(gcc_cv_ld_gold_srcdir): New.
(gcc_cv_ld): Also check in-tree gold if install_gold_as_default
is yes.
(ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
(ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
* configure: Regenerated.

* exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
(ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
(original) [collect-ld && -fuse-ld=bfd]: Set to
$ORIGINAL_LD_BFD_FOR_TARGET.
(original) [collect-ld && -fuse-ld=gold]: Set to
$ORIGINAL_LD_GOLD_FOR_TARGET.
(dir) [collect-ld && ../gold/ld-new]: Set to gold.
(fast_install) [collect-ld && ../gold/ld-new]: Set to yes.

From-SVN: r205392
gcc/ChangeLog
gcc/configure
gcc/configure.ac
gcc/exec-tool.in