public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: <bzk0711@aim.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] "prelink" a dynamic library
Date: Thu, 2 Oct 2008 14:19:28 +0200	[thread overview]
Message-ID: <20081002141928.2713fd90@silencio.saunaklub> (raw)
In-Reply-To: <tkrat.1c2bfe9dfd0611f0@igpm.rwth-aachen.de>

On Wed, 01 Oct 2008 18:53:04 +0200 (CEST)
Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:

> Hi,

Hello Helmut,
 
> I want to create a shared library, say libULIB.so,
> which needs additional shared libraries, e.g. libmpfr.so and
> libgmp.so .
> 
> My users only use the functions provided by libULIB.so.
> 
> Is there a means to "prelink" libULIB.so, so that the libraries
> libmpfr.so and libgmp.so are not needed by the user?

You should be able to just provide the libraries to the linker when
linking your shared object. When *running* the application, your shared
object (i.e. the loader) should transitively pull in the libs on which
yours depends. You can check those dependencies using ldd <your-lib>.

Hope this helps,
Patric



  reply	other threads:[~2008-10-02 12:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 16:53 [gentoo-user] "prelink" a dynamic library Helmut Jarausch
2008-10-02 12:19 ` bzk0711 [this message]
2008-10-03 10:21   ` Helmut Jarausch
2008-10-03 17:49     ` b.n.
2008-10-03 18:24 ` Paul Hartman

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=20081002141928.2713fd90@silencio.saunaklub \
    --to=bzk0711@aim.com \
    --cc=gentoo-user@lists.gentoo.org \
    /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