tags:

views:

83

answers:

1

To use the loader in the alternate glibc installation at /usr/test, I have change the loader path /lib/ld-linux-x86-64.so.2 to /usr/test/lib/ld-linux-x86-64.so.2 under the *link section in the gcc specs file. I have also pointed CPATH to /usr/test/lib/include and LIBRARY_PATH to /usr/test/lib.

Is it the correct way to use the alternate glibc?

A: 

I don't know about correct, but I'd prefer setting up a chroot environment for this sort of testing. You might alternatively use the LD_PRELOAD mechanism.

crazyscot
Unfortunately sometimes I need to work on systems that I don't have root privilege
netvope