1 |
On 2 Oct, bzk0711@×××.com wrote: |
2 |
> On Wed, 01 Oct 2008 18:53:04 +0200 (CEST) |
3 |
> Helmut Jarausch <jarausch@××××××××××××××××.de> wrote: |
4 |
> |
5 |
>> Hi, |
6 |
> |
7 |
> Hello Helmut, |
8 |
> |
9 |
>> I want to create a shared library, say libULIB.so, |
10 |
>> which needs additional shared libraries, e.g. libmpfr.so and |
11 |
>> libgmp.so . |
12 |
>> |
13 |
>> My users only use the functions provided by libULIB.so. |
14 |
>> |
15 |
>> Is there a means to "prelink" libULIB.so, so that the libraries |
16 |
>> libmpfr.so and libgmp.so are not needed by the user? |
17 |
> |
18 |
> You should be able to just provide the libraries to the linker when |
19 |
> linking your shared object. When *running* the application, your shared |
20 |
> object (i.e. the loader) should transitively pull in the libs on which |
21 |
> yours depends. You can check those dependencies using ldd <your-lib>. |
22 |
> |
23 |
> Hope this helps, |
24 |
> Patric |
25 |
|
26 |
Thanks Patric, but unfortunately that's not what I want. |
27 |
In this case, these "secondary" libraries (e.g. libmpfr.so and |
28 |
libgmp.so) have to be present on the target machines together |
29 |
with an 'rpath' if they are in non-standard directories. |
30 |
|
31 |
My aim was to let the linker generate a big library which |
32 |
obseletes the secondary libraries. |
33 |
|
34 |
Helmut. |
35 |
|
36 |
-- |
37 |
Helmut Jarausch |
38 |
|
39 |
Lehrstuhl fuer Numerische Mathematik |
40 |
RWTH - Aachen University |
41 |
D 52056 Aachen, Germany |