Cross linking our Ch5 build against a new glibc

Ryan.Oliver at Ryan.Oliver at
Sun Jan 19 15:03:16 PST 2003

> > - newer binutils (i'm using binutils- contain a new switch
> >   --with-lib-path which allows you to set the default value for
> >   thus no need for the messy sed
> I'll have to look at it, if the ldscripts get fixed up as well
> even better
> ie, if LIB_PATH is now passed to,
> at the present (2.13) it isnt, hence the present hack to pass
> LIB_PATH environment var to GENSCRIPTS.

Excellent, looks like the hacks for binutils aren't needed anymore to build
the cross-linker for building Chapter 5 against a new glibc

>From binutils-

2002-08-20 Dan Kegel

      * added --with-lib-path argument to ld's configure
      to set LIB_PATH.
      * ld/NEWS: Document new switch.
      * ld/README: Mention new switch.
      * configure: Regenerate.
      * Regenerate.

      Based on this patch:
      2001-04-25  Christopher Faylor

      * (LIB_PATH): Make configurable.
      (GENSCRIPTS): Set LIB_PATH in environment.
      * Substitute LIB_PATH.

>From binutils-
# These all start with e so 'make clean' can find them.

${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "
GEN_DEPENDS = $(srcdir)/ stringify.sed

Note LIB_PATH is now set in GENSCRIPTS (woohoo :-) )

So Greg, you are absolutely correct, to build a cross linker all we have to
do is specify --with-lib-path during configure :-)

This makes life nice and easy, just leaves us with the hack to modify
--dynamic-linker in gcc

Ryan Oliver

Peter Harding and Associates Pty. Ltd.
Eml: ryan.oliver at
Ph:  +613 9641 2222
Fax: +613 9641 2200

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list