$ORIGIN does not work under x86_64

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 10/19/04

  • Next message: Colossus: "Weird crash in in _nv000029gl () from /usr/lib/libGL.so.1"
    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


  • Next message: Colossus: "Weird crash in in _nv000029gl () from /usr/lib/libGL.so.1"