[uClibc]Confusion about paths

Pedro Sanchez psanchez at nortelnetworks.com
Thu Nov 28 23:19:17 UTC 2002


Hi,

This may be a silly question but I'm a bit confused about the use of
target directories when building a toolchain and when creating a root
file system for my target (I'm doing cross i386 -> powerpc).

1. I succesfully generated the cross compiler using the gcc-3.2.1 tool
chain (with some mod's). The tool chain was installed in /opt/uclibc
(TARGET_PATH=/opt/uclibc). This means that if I cross compile my apps,
and get them loaded into my target board, they will look for the
libraries to be living in /opt/uclibc/lib, correct?

2. But, I want to compile my apps (i.e., busybox) so that they look for
libraries in the standard directories (/lib, /usr/lib) when running in
my target board. How do I do this?

a. Re-do step 1 using TARGET_PATH=/ instead, is this safe? isn't this
going to trash my host system?

b. Using the cross compiler from step 1, recompile uClibc with
DEVEL_PREFIX=/usr. I guess I would then be building a wrapper to the
cross compiler :&. Does this make sense?

c. Other?

I'd appreciate any advice on this. Thank you,

-- 
Pedro






More information about the uClibc mailing list