On Tue, Jan 27, 2004 at 05:44:57PM +0100, Martin MOKREJS wrote:
>On Tue, 27 Jan 2004, David Dawes wrote:
>
>> On Tue, Jan 27, 2004 at 03:22:35PM +0100, Martin MOKREJS wrote:
>> >On Sat, 24 Jan 2004, David Dawes wrote:
>>
>> >I will stick to -rpath on Linux, so what should I do to compile X with
>> >it on Linux and where is it documented, Dave?;)
>>
>> Add the following line to your host.def file:
>>
>> #define UseRpath YES
>>
>> The main objection to rpath that I see is that it is searched before
>> the sysadmin and user overrides.  Personally I would find it more
>
>No, LD_LIBRARY_PATH always overrides except SUID case.

That's not what I've found (or what Jakub Jelinek reported for
Linux or what the rtld codes shows for FreeBSD).  I've done some
simple tests on FreeBSD, Linux, and Solaris, and the LD_LIBRARY_PATH
override only works on Solaris.  This is for non-SUID executables.

BTW, this is why on FreeBSD we need to use LD_PRELOAD to make some utilities
run during the build process use the freshly built shared libraries instead
of the installed ones.  Something similar will probably be needed for
a Linux build with -rpath enabled.

David
-- 
David Dawes
developer/release engineer                      The XFree86 Project
www.XFree86.org/~dawes
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to