[Qt-interest] LGPL and static linking

william.crocker at analog.com william.crocker at analog.com
Tue Dec 1 20:35:50 CET 2009



>> My application runs as root and so use of LD_LIBRARY_PATH (etc) is not
>> permitted
>>     
>
> Is this a setuid root application? Otherwise I'm only aware of tools like 
> sudo stripping the variable's values.
>
>   

Yes. This is a chown to root, setuid application.
Use of LD_LIBRARY_PATH is disabled (for security reasons) for setuid 
applications.

>> and I do not want to have to worry about how every computer among the
>> thousands on which it runs within my enterprise finds the Qt libs.
>>     
>
> In our product we wrap the real applications in light-weight starter 
> applications that set LD_LIBRARY_PATH (Unix) and PATH (Windows) to point 
> it to our own library copies and never had a problem. The code is no big 
> magic as using shell script wrappers is common practise. But maybe I 
> should post the code anyway.
>
>   

If I would be pointing with LD_LIBRARY_PATH then it would not work for 
the above stated reason.




More information about the Qt-interest-old mailing list