$ORIGIN does not work under x86_64
From: Andrei Voropaev (avorop_at_mail.ru)
Date: 10/19/04
- Previous message: Liu Dan: "Same program but different behavior under kernel 2.4 and kernel 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Oct 2004 09:36:50 GMT
Hello!
In http://people.redhat.com/drepper/ I've learned very nice tip about
using $ORIGIN in the run-time search path. This works perfectly on i686.
But when I've compiled the same sources (using the same makefile) on
x86_64 the feature disappeared. As far as I can see the executable has
$ORIGIN in the rpath.
$ readelf -a test | grep ORIGIN
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN]
What could be the problem? Of course, I can keep using LD_LIBRARY_PATH, but
the above solution seems to be much better :)
Andrei
- Previous message: Liu Dan: "Same program but different behavior under kernel 2.4 and kernel 2.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]