This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Use gcc to build DSO
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: Jack Howarth <howarth at nitro dot med dot uc dot edu>, binutils at sources dot redhat dot com
- Date: Fri, 16 May 2003 12:59:08 +0930
- Subject: Re: PATCH: Use gcc to build DSO
- References: <20030515192436.A20257@lucon.org> <20030515192951.A20414@lucon.org>
On Thu, May 15, 2003 at 07:29:51PM -0700, H. J. Lu wrote:
> On Thu, May 15, 2003 at 07:24:36PM -0700, H. J. Lu wrote:
> > This patch fixes DSO build. We use "ld_link $ld" to build shared
> > libraries. "ld_link $ld" is for building executables. It is
> > totally wrong to use it for building shared libraries.
Hmm, this appears to do the same as the patch I worked on in
http://sources.redhat.com/ml/binutils/2003-05/msg00151.html, but I
like yours better. :-) Please commit.
> 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
>
> * config/default.exp (gcc_ld_flag): New. Make the newly built
> linker available to gcc.
> * lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
> to gcc.
>
> * ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
> libraries.
> * ld-elfvsb/elfvsb.exp: Likewise.
> * ld-elfweak/elfweak.exp: Likewise.
> * ld-shared/shared.exp: Likewise.
>
> * ld-elfvers/vers.exp: Remove xfail for powerpc-*-linux*.
>
> * ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
> libraries.
--
Alan Modra
IBM OzLabs - Linux Technology Centre