use "cc -shared" for 2.8 and up to create shared libraries.

This commit is contained in:
brad 2000-12-26 01:38:53 +00:00
parent d955308d0c
commit 41a828db30
2 changed files with 54 additions and 6 deletions

View File

@ -1,6 +1,16 @@
--- ltmain.sh.orig Wed Feb 16 06:17:59 2000
+++ ltmain.sh Thu Mar 9 10:16:19 2000
@@ -3555,40 +3555,6 @@
--- ltmain.sh.orig Fri Feb 4 13:29:21 2000
+++ ltmain.sh Mon Dec 25 17:07:10 2000
@@ -1795,6 +1795,9 @@
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
+ *-*-openbsd*)
+ # do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3555,40 +3558,6 @@
# Exit here if they wanted silent mode.
test "$show" = : && exit 0

View File

@ -1,6 +1,44 @@
--- ltconfig.orig Wed Feb 16 06:17:59 2000
+++ ltconfig Thu Mar 9 10:17:11 2000
@@ -2004,6 +2004,7 @@
--- ltconfig.orig Fri Feb 4 13:29:21 2000
+++ ltconfig Mon Dec 25 17:07:08 2000
@@ -1105,6 +1105,9 @@
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1396,10 +1399,18 @@
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd2.[01234567])
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
;;
os2*)
@@ -1997,13 +2008,10 @@
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH