]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-c.sh: split off the osf3 section, so that the osf4 and osf5
authorOssama Othman <ossama@debian.org>
Sun, 23 Jan 2000 03:10:33 +0000 (03:10 +0000)
committerOssama Othman <ossama@debian.org>
Sun, 23 Jan 2000 03:10:33 +0000 (03:10 +0000)
sections can add `-msym' to arguments passed to the linker for
shared libs.
Reported by Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>

ltcf-c.sh

index 45532e6d6fe97ab102ffd946369300684dd44865..e525e4739d7d16d8e5c61c5140ec4e5b1bd75b7c 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -386,7 +386,7 @@ else
     old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
     ;;
 
-  osf3* | osf4* | osf5*)
+  osf3*)
     if test "$with_gcc" = yes; then
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
@@ -398,6 +398,18 @@ else
     hardcode_libdir_separator=:
     ;;
 
+  osf4* | osf5*)       # as osf3* with the addition of -msym flag
+    if test "$with_gcc" = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+
   sco3.2v5*)
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     hardcode_shlibpath_var=no