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: Only generate libpath.exp for first emulation


On Thu, Oct 21, 2004 at 11:03:39AM +0930, Alan Modra wrote:
> On Wed, Oct 20, 2004 at 06:05:39PM -0700, H. J. Lu wrote:
> > Alan,
> > 
> > Your patch
> > 
> > http://sources.redhat.com/ml/binutils/2003-08/msg00200.html
> > 
> > assumes the first emulation will be generated first. But it may not be
> > true for parallel build.
> 
> Hmm, yes.
> 
> > This patch seems to work for me.
> 
> The patch looks totally wrong to me.

I am trying to fix Linux/x86_64, which has

LIB_PATH='' /bin/sh /net/gnu/export/linux/src/binutils/binutils/ld/genscripts.sh /net/gnu/export/linux/src/binutils/binutils/ld /usr/local/lib "/usr/local" x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu "elf_x86_64 elf_i386" "/usr/local/lib /lib /usr/lib" no elf_x86_64 "x86_64-unknown-linux-gnu"
LIB_PATH='' /bin/sh /net/gnu/export/linux/src/binutils/binutils/ld/genscripts.sh /net/gnu/export/linux/src/binutils/binutils/ld /usr/local/lib "/usr/local" x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu "elf_x86_64 elf_i386" "/usr/local/lib /lib /usr/lib" no elf_i386 "i386-unknown-linux-gnu"

That is EMULATION_LIBPATH is "elf_x86_64 elf_i386" and
EMULATION_NAME can be either "elf_x86_64" or "elf_i386". We only
want to generate libpath.exp for "elf_x86_64". The current scheme
doesn't work for parallel build. I think my patch works correctly.


H.J.


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