This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

using ldconfig on build host to generate ld.so.cache for target


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


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