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


_______________________________________________
Bug-libtool mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to