Hi!

the soname wasn't set when -retain-symbols-file was used which broke
using this library as the linker looked in .libs even if the lib was
installed.
Here is the patch

Greetings, Stephan

diff -u -r1.2.2.5 -r1.2.2.6
--- ltcf-cxx.sh 2000/02/26 14:25:59     1.2.2.5
+++ ltcf-cxx.sh 2000/05/23 11:38:21     1.2.2.6
@@ -185,7 +185,7 @@
       cxx)
         # Compaq C++
         archive_cmds='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects
$linker_flags ${wl}-soname $wl$soname -o $lib'
-        archive_expsym_cmds='$CC -shared $predep_objects $libobjs $deplibs
$postdep_objects $linker_flags ${wl}-retain-symbols-file $wl$export_symbols'
+        archive_expsym_cmds='$CC -shared $predep_objects $libobjs $deplibs
$postdep_objects $linker_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
$wl$export_symbols'

         runpath_var=LD_RUN_PATH
         hardcode_libdir_flag_spec='-rpath $libdir'
@@ -205,7 +205,7 @@
         # GNU C++ compiler
         if test "$with_gcc" = yes; then
           archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
-          archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+          archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
$wl$export_symbols -o $lib'

           runpath_var=LD_RUN_PATH
           hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 
-- 
Programmers, heed this: If someone starts asking you about
agricultural genomes, it's likely time to get a handler. 
                                zdnet.com about Torvalds

Reply via email to