From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KloWY-0003wP-73 for garchives@archives.gentoo.org; Fri, 03 Oct 2008 17:33:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD850E03E9; Fri, 3 Oct 2008 17:33:04 +0000 (UTC) Received: from aa012msr.fastwebnet.it (aa012msr.fastwebnet.it [85.18.95.72]) by pigeon.gentoo.org (Postfix) with ESMTP id 6887AE03E9 for ; Fri, 3 Oct 2008 17:33:04 +0000 (UTC) Received: from [37.1.3.90] (37.1.3.90) by aa012msr.fastwebnet.it (8.0.013.8) (authenticated as cyclopia) id 48D845F201E68F1A for gentoo-user@lists.gentoo.org; Fri, 3 Oct 2008 19:33:02 +0200 Message-ID: <48E65B37.1080708@gmail.com> Date: Fri, 03 Oct 2008 19:49:43 +0200 From: "b.n." User-Agent: Thunderbird 2.0.0.16 (X11/20080731) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] "prelink" a dynamic library References: <20081002141928.2713fd90@silencio.saunaklub> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: fa002b71-4def-40e7-af9c-a05149d7bd1c X-Archives-Hash: b75161aa24380169e98d3c61eb9b3123 Helmut Jarausch ha scritto: > On 2 Oct, bzk0711@aim.com wrote: >> On Wed, 01 Oct 2008 18:53:04 +0200 (CEST) >> Helmut Jarausch 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 . >> >> Hope this helps, >> Patric > > Thanks Patric, but unfortunately that's not what I want. > In this case, these "secondary" libraries (e.g. libmpfr.so and > libgmp.so) have to be present on the target machines together > with an 'rpath' if they are in non-standard directories. > > My aim was to let the linker generate a big library which > obseletes the secondary libraries. If I understand correctly, you want them to be statically linked. m.