[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool not hardlinking library path on sparc*-sun-solaris*
From: |
Ralf Wildenhues |
Subject: |
Re: libtool not hardlinking library path on sparc*-sun-solaris* |
Date: |
Thu, 12 Jan 2006 23:17:17 +0100 |
User-agent: |
Mutt/1.5.9i |
Hi Aleksandar,
* Aleksandar Milivojevic wrote on Thu, Jan 12, 2006 at 04:49:48PM CET:
> I've a problem with libtool (1.5.22 and the version included with gcc
> 4.0.2). Platform is sparc*-sun-solaris*. Using gcc 4.0.2. The linker
> doesn't seem to influence it (I've had same problem with gcc build that
> uses Sun ld and the build that uses Gnu ld).
>
> When creating shared libraries, the library path is not hardcoded into
> executable. On Solaris system, this may result in dynamic linker
> failing to load dynamic libraries during runtime.
> ./libtool --mode=link gcc -o libfoo.la -rpath /prefix/lib list-of-files
> gcc -shared list-of-files -lc -Wl,-soname -Wl,libfoo.so.0 -o
> .libs/libfoo.so.0.0.0
>
> The resulting link command is missing "-Wl,--rpath -Wl,/prefix/lib"
> options (example using Gnu ld).
Please rerun above command with `./libtool --debug' and post the output,
packed (bzip2 or gzip preferred); also `./libtool --debug'.
Cheers,
Ralf