This is the mail archive of the
mailing list for the GCC project.
Re: A question about RPATH
- From: Jim Rice <jmrice6640 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org, Dennis Clarke <dclarke at blastwave dot org>
- Date: Wed, 19 Dec 2012 15:20:56 -0800 (PST)
- Subject: Re: A question about RPATH
> I am a firm believer that LD_LIBRARY_PATH is evil, certainly
> at least dangerous and the
> output binary from any compile should have an RPATH set to
> ensure that the correct
> libs are found that the developer wanted.
> Having said all that, is there a magic
> LD_OPTIONS_INCANTATION=-Wl,-rpath=/usr/local/lib type thing
> to set to ensure I get my RPATH ?? I should point out
> this is trivial to do in the Solaris world and perhaps I am
> missing something really obvious here.
crle -64 -c /var/ld/64/ld.config -l /lib/64:/usr/lib/64:/usr/local/lib