From: Ossama Othman Date: Sun, 23 Jan 2000 03:10:33 +0000 (+0000) Subject: * ltcf-c.sh: split off the osf3 section, so that the osf4 and osf5 X-Git-Tag: multi-language-merge-point~251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=366045422b5bd9b6ff91455bd5c99242bb251a75;p=thirdparty%2Flibtool.git * ltcf-c.sh: split off the osf3 section, so that the osf4 and osf5 sections can add `-msym' to arguments passed to the linker for shared libs. Reported by Tim Mooney --- diff --git a/ltcf-c.sh b/ltcf-c.sh index 45532e6d6..e525e4739 100644 --- 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