[Top] [All Lists]

Re: glibc again

To: Guido Guenther <>
Subject: Re: glibc again
From: Keith M Wesolowski <>
Date: Fri, 8 Sep 2000 19:16:12 -0700
In-reply-to: <>; from on Sat, Sep 09, 2000 at 12:07:36AM +0200
References: <>
User-agent: Mutt/1.2i
On Sat, Sep 09, 2000 at 12:07:36AM +0200, Guido Guenther wrote:

> with latest cvs I've been able to crossbuild glibc. When trying 
> to crosscompile programs against it I ended up with
> lots of unresolved symbols. This all changed when I edited
> /usr/local/mips-linux/lib/ from 
> GROUP ( /lib/ /usr/lib/libc_nonshared.a ) to 
> GROUP ( libc_nonshared.a )
> Should I consider this a bug in a) my "setup", b) glibc c) to be
> intended behavior?

I'm astonished it only complained about unresolved symbols. If you
leave it as is, it tries to link in your build system's libraries. I
always replace the two with full paths to the mips libraries. I'm
fairly sure this is also in my cross-build faq.


        # *sigh* This is the fun part. We need to fix up so that
        # it points to files in our filesystem, not the mythical /usr dirs
        # we would have if this were native.
        echo "Fixing up locations"
        sed -e s%/lib/"${_destdir}/$TARGET/lib/"%g \
            -e s%/usr/lib/%"${_destdir}/$TARGET/lib/"%g \
          < "${_destdir}/$TARGET/lib/" \
          > "${_destdir}/$TARGET/lib/" || exit 1
        mv -f "${_destdir}/$TARGET/lib/" \
          "${_destdir}/$TARGET/lib/" || exit 1

Finding a nicer way is left as an exercise...

Keith M Wesolowski            
University of Nevada          
Chemistry Department Systems and Network Administrator

<Prev in Thread] Current Thread [Next in Thread>