using ldconfig on build host to generate ld.so.cache for target
Travis Newhouse
travisnewhouse@gmail.com
Wed Apr 27 21:31:00 GMT 2005
Hi,
If this is not the appropriate forum for this question, then please let me know.
I've used crosstool to build a toolchain for gcc 3.4.1 and glibc
2.3.3. I'm using the toolchain to compile several packages (busybox,
tinylogin, ...) and create an embedded Linux root filesystem image. I
build the image with genext2fs, and mostly everything works (i.e. I
can boot and busybox utilities operate correctly).
I have a question about how one can generate a /etc/ld.so.cache file
on the build host that the target can use to search the proper paths
for shared libraries. I installed an ld.so.conf file in /tmp/staging
(where /tmp/staging contains the root filesystem I am building and
tried running "/sbin/ldconfig -v -r /tmp/staging" , but it complains
that it can't locate directories:
/sbin/ldconfig: Can't stat /usr/local/openssl-0.9.7g: No such file
or directory
I also tried using the ldconfig executabled in
/...toolchain.../sys-root/sbin, but that failed with the same error.
Thanks for any help,
Travis
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list