From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Michael Snyder <msnyder@vmware.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: python config question
Date: Wed, 03 Mar 2010 09:21:00 -0000 [thread overview]
Message-ID: <20100303092047.GA24396@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20100303045039.GB15364@adacore.com>
On Wed, 03 Mar 2010 05:50:39 +0100, Joel Brobecker wrote:
> > Maybe the configure option should include rpath?
>
> It could. We're touching at something that is very platform-dependent,
> though - perhaps you want to look at using libtool (although I'll admit
> to a severe aversion to this tool, probably unjustified). If I were in
> your position, I might consider linking statically against libpython.
> At AdaCore, the plan is to use LD_LIBRARY_PATH, which we'll have to do,
> since customers are free to install the binary package wherever they
> want (hence preventing rpath from working).
IIUC you ship libpython*.so.* libraries bundled with the shipped gdb.
Isn't ld.so's $ORIGIN useful?
$ORIGIN and rpath
ld.so understands the string $ORIGIN (or equivalently ${ORIGIN}) in an
rpath specification (DT_RPATH or DT_RUNPATH) to mean the directory
containing the application executable. Thus, an application located
in somedir/app could be compiled with gcc -Wl,-rpath,'$ORIGIN/../lib'
so that it finds an associated shared library in somedir/lib no matter
where somedir is located in the directory hierarchy. This facilitates
the creation of "turn-key" applications that do not need to be
installed into special directories, but can instead be unpacked into
any directory and still find their own shared libraries.
Regards,
Jan
next prev parent reply other threads:[~2010-03-03 9:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-02 0:37 Michael Snyder
2010-03-02 5:22 ` Joel Brobecker
2010-03-02 18:11 ` Michael Snyder
2010-03-03 4:51 ` Joel Brobecker
2010-03-03 9:21 ` Jan Kratochvil [this message]
2010-03-03 9:46 ` Joel Brobecker
2010-03-03 15:29 ` Daniel Jacobowitz
2010-03-03 17:46 ` Michael Snyder
2010-03-03 17:53 ` Daniel Jacobowitz
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=20100303092047.GA24396@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=msnyder@vmware.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