This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]


On Mon, Nov 2, 2009 at 3:06 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> This patch adds --enable-gold=both --with-linker=[bfd|gold] so that we
> can build both ld and gold. This patch will
>
> 1. Install ld as ld.bfd
> 2. Install gold as ld.gold
> 3. Install one of them as ld, selected by --with-linker.
>
> If needed, gcc install invoke gold as ld.gold and ld as ld.bfd. ?Any
> comments?
>

Here is the updated patch. It installs ld.bfd/ld.gold only if both
linkers are enabled.



H.J.
---
2009-11-03  Roland McGrath  <roland@redhat.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* configure.ac (--enable-gold): Accept --enable-gold=both to
	add gold to configdirs without removing ld.
	* configure: Regenerated.

gold/

2009-11-03  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.am (install-exec-local): Install as @installed_linker@.
	Install as ld if "@linker@" == "ld.gold" and @installed_linker@
	!= "ld".
	* Makefile.in: Regenerated.

	* configure.ac (installed_linker): New substituted variable.  Set
	by --enable-gold.
	(linker): New substituted variable.  Set by --enable-gold and
	--with-linker.
	* configure: Regenerated.

ld/

2009-11-03  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.am (transform): Install as @installed_linker@.
	(install-exec-local): Depend on install-binPROGRAMS.  Install
	as @installed_linker@.  Install as ld if "@linker@" == "ld.bfd"
	and @installed_linker@ != "ld".
	* Makefile.in: Regenerated.

	* configure.ac (installed_linker): New substituted variable.  Set
	by --enable-gold.
	(linker): New substituted variable.  Set by --enable-gold and
	--with-linker.
	* configure: Regenerated.

Attachment: binutils-gold-2.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]