public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dennis Clarke <dclarke@blastwave.org>
To: Jim Rice <jmrice6640@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: A question about RPATH
Date: Wed, 19 Dec 2012 23:57:00 -0000	[thread overview]
Message-ID: <fbaea9ec657d.50d20e18@blastwave.org> (raw)
In-Reply-To: <1355959256.52229.YahooMailClassic@web160504.mail.bf1.yahoo.com>


> 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

  reply	other threads:[~2012-12-19 23:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 23:08 Dennis Clarke
2012-12-19 23:21 ` Jim Rice
2012-12-19 23:57   ` Dennis Clarke [this message]
2012-12-20  0:15   ` Dennis Clarke
2012-12-20  0:19     ` Jonathan Wakely
2012-12-20  0:31       ` Dennis Clarke
2012-12-20  2:26       ` Dennis Clarke
2012-12-20  9:42 ` Andrew Haley
2012-12-20 11:01   ` Dennis Clarke
2012-12-20 14:51     ` Andrew Haley
2012-12-20 11:40   ` Jonathan Wakely
2012-12-20 14:54     ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fbaea9ec657d.50d20e18@blastwave.org \
    --to=dclarke@blastwave.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jmrice6640@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).