A question about RPATH

Dennis Clarke dclarke@blastwave.org
Wed Dec 19 23:57:00 GMT 2012


> crle ?
> 
> crle -64 -c /var/ld/64/ld.config -l /lib/64:/usr/lib/64:/usr/local/lib

That would also be the wrong way to go here. One need not change the system 
config in order to run a binary. The binary should indicate the preferred path to 
search for libraries within it .. not outside of it. LD_LIBRARY_PATH defeats and wrecks that.

So really the only sane option here is -Wl,--rpath=/usr/local/lib 

Or similar. 

dc



More information about the Gcc-help mailing list