This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Default path for dynamic linker
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:
----------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.
For the development system everything worked fine in my first variant,
besides the wrongly compiled-in path in ld-linux.so.2.
Anyway, thanks for the hint! I hope that somebody has another idea...
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4