Hi,

Im' using linux on a custom x86 based board. I' mounting my filesystem
through NFS. 

I wanted to build a custom glibc for my system. I put the source in
~/glibc-2.2.3, I build in ~/glibc-2.2.3/glibc-build and I install  in
~/dev (with --prefix=~/dev and --exec-prefix=~/dev/i486-linux at
configure time)

After that i copied libraries from ~/dev/i486-linux/lib to ~/nfsroot/lib.

The problem is that it can't load any libraries when i try to run
anything when booting (init fail) or when chrooting in ~/nfsroot.

When i do an strace over the "chroot ~/nfsroot /bin/sh" command it shows
that it's trying to load libc.so.6 from ~/dev/i486-linux/lib.

~I don't understand because But if i do a ldd ~/nfsroot/bin/sh it shows
/lib/libc.so.6 

It works fine if i just copy my system libc on the nfsroot.
It works fine also if i just copy my system /lib/ld-2.2.3.so on the
nfsroot.
So i guess the path ld-linux.so is looking are statically linked at
compile time, how can i overcome that problem ?

Thanks

-- 
Fabrice Gautier <[EMAIL PROTECTED]>


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to