From 292ca1ce64168c22a796ecd9c4e51aff66604a90 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 29 Sep 1999 23:08:26 +0000 Subject: [PATCH] * ltconfig.in (sysv): More UW7 support. --- ChangeLog | 4 ++++ ltconfig.in | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f8dcbb7b..0ee24c912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-09-29 Vadim + + * ltconfig.in (sysv): More UW7 support. + 1999-09-28 Albert Cheng * ltmain.in (shlibpath_var): ensure the variable is non-empty before diff --git a/ltconfig.in b/ltconfig.in index f9c9c4bcb..57e922855 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1416,7 +1416,7 @@ EOF fi ;; - solaris*) + solaris* | sysv5*) if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 @@ -1667,6 +1667,17 @@ else link_all_deplibs=yes ;; + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + ;; + sunos4*) archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' @@ -2175,7 +2186,7 @@ hpux*) # Its linker distinguishes data from code symbols irix*) symcode='[BCDEGRST]' ;; -solaris*) +solaris* | sysv5*) symcode='[BDT]' ;; sysv4) -- 2.47.3