This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: Default path for dynamic linker


On Mon, Sep 09, 2002 at 10:36:25PM +0200, Robert Schwebel wrote:
> On Mon, Sep 09, 2002 at 05:50:11PM +0200, Jakub Jelinek wrote:
> > Why cannot you simply configure/build glibc with the default prefix
> > and use make install_root=/foo/bar install to install it?
> 
> I have tried that now (--prefix=/; install_root=$MY_TOOLCHAIN_TOPLEVEL),
> but that results in not being able to link any more with the toolchain: 

You want --prefix=/usr.

> 
> ----------8<----------
> robert@ganymed:~/embedded/cvs/busybox> make
> [...]
> arm-linux-gcc -s -Wl,-warn-common -o busybox
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/applets/applets.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/archival/archival.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/archival/libunarchive/libunarchive.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/console-tools/console-tools.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/editors/editors.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/fileutils/fileutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/findutils/findutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/init/init.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/miscutils/miscutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/modutils/modutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/networking/networking.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/procps/procps.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/loginutils/loginutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/shell/shell.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/shellutils/shellutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/sysklogd/sysklogd.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/textutils/textutils.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/util-linux/util-linux.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/libbb/libbb.a
> /home/robert/embedded/cvs/busybox-0.61pre-ptx4/libpwdgrp/libpwdgrp.a
> -lcrypt
> //lib/libc.so.6: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1
> ---------->8----------
> 
> Which is not _that_ strange, because the linker does now try to link
> against the (x86) libc.so.6 in /lib. 

If you're going to do this, remove the /lib/ in ...../usr/lib/libc.so. 
A relative pathname will work if your linker is configured right.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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