This is the mail archive of the binutils@sources.redhat.com 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: Use gcc to build DSO


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


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