Hi Thomas,
                I am building for another target(i have a x86 based board).
Yes as you suggested i have done chroot,

<shell>chroot /path/to/buildroot/output/target /bin/sh

and able to use the new root file system of build root. but now the question is 
my toolchain binaries like i586-linux-gcc,g++ all are present in 
/path/to/buildroot/output/staging/usr/bin and the libraries are in sysroot/lib 
and sysroot/usr/lib.


how can I use them in this new temporary environment?
I tried copying them manually to /bin and /lib of target and tried chroot and 
compiled ,but did not succeed.


Regards,
Mahanteshwari Hiremath.

________________________________________
From: [email protected] [[email protected]] on behalf of 
Thomas De Schampheleire [[email protected]]
Sent: Wednesday, November 02, 2011 4:40 PM
To: Mahanteshwari Hiremath
Cc: [email protected]
Subject: Re: LD_LIBRARY_PATH issue

Hi,

On Wed, Nov 2, 2011 at 11:21 AM, Mahanteshwari Hiremath
<[email protected]> wrote:
> I see it is over riding my native toll commands.
> suggest me how can i safely set this LD_LIBRARY_PATH, so that i can use 
> native libraries and commands as well.

Could you try to explain what you are doing in a bit more detail?
Are you building for the same machine on which you build, or are you
building for another target?

Normally, you shouldn't need LD_LIBRARY_PATH at all. What happens if
you just run your application?

You may want to use chroot to create a temporary environment in which
the 'buildroot/output/target' directory is at /, so that only those
libraries can be found, see http://linux.die.net/man/1/chroot.
For example:
chroot /path/to/buildroot/output/target /bin/sh

Best regards,
Thomas


Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to