Debugging Compiler Issues

Arnaud Lacombe lacombar@gmail.com
Fri Aug 6 18:21:00 GMT 2010


Hi,

On Fri, Aug 6, 2010 at 1:59 PM, Gavin Kavanaugh <zeddicus76@gmail.com> wrote:
> Arnaud,
> Thank you for the quick reply.  I had not even tried linking statically so I
> am doing that now.
>
> I have tried LD_LIBRARY_PATH unsuccessfully.  When I set it to my new
> library path, suddenly my commands stop working (i.e. ls, cd ). I end up
> with problems since my system needs the existing libraries, but I want the
> application to run with the new ones. I hope that the static linking will
> resolve this.
>
you can override LD_LIBRARY_PATH only for your program:

% LD_LIBRARY_PATH=/path/to/really/old/libc/ /bin/ls
/bin/ls: /path/to/really/old/libc/libc.so.6: version `GLIBC_2.4' not
found (required by /bin/ls)
[...]

 - Arnaud

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list