LIB_PATH for cross compiling

Murray Jensen Murray.Jensen at cmst.csiro.au
Wed May 16 16:08:39 EST 2001


On Wed, 16 May 2001 13:41:23 +0800, Michael Habermann <MHabermann at gmx.de> writes:
>I cross compile from i386 to ppc. If I compile a simple C program, the
>linker searchs the libc.so.6 in the /lib path instead of the
>/usr/local/powerpc-linux/lib.

I think you need to edit the file "/usr/local/powerpc-linux/lib/libc.so".
You will find it is a text file that looks like this:

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )

change "/lib" and "/usr/lib" to be "/usr/local/powerpc-linux/lib" in the above
file (do it automatically with a script as part of the installation of glibc).
Cheers!
								Murray...
--
Murray Jensen, CSIRO Manufacturing Sci & Tech,         Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662 7853
Internet: Murray.Jensen at cmst.csiro.au  (old address was mjj at mlb.dmt.csiro.au)


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list