[M3devel] runpath/unshipped vs. shipped binaries
    Carson Gaspar 
    carson at taltos.org
       
    Mon Apr  6 08:54:00 CEST 2009
    
    
  
Jay wrote:
>  
> - The horrid RPATH is not my doing. It has "always" been that way.
>  
> - The horrid RPATH is needed, for running not installed binaries, a very real scenario,
No. It's not needed. Please provide a use case where a crappy polluted 
RPATH provides any benefit, and be specific.
If you need to _temporarily_ run binaries in the build tree, where 
${exe_path}/../lib does not contain libraries, set LD_LIBRARY_PATH 
(which overrides RPATH). Or, better still, fix the build to put things 
in $foo/bin and $foo/lib before you run them.
Hard-coding /tmp/frobnitz/blah/lib in RPATH is _extremely_ bad from many 
perspectives, including security. Don't do it. No really, don't.
-- 
Carson
    
    
More information about the M3devel
mailing list