This commit is contained in:
pvalchev 2001-08-07 06:36:38 +00:00
parent 6841c7e788
commit f542c32691
4 changed files with 34 additions and 24 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-ltconfig,v 1.1.1.1 2001/07/18 21:35:17 pvalchev Exp $
$OpenBSD: patch-ltconfig,v 1.2 2001/08/07 06:36:38 pvalchev Exp $
--- ltconfig.orig Thu Oct 12 16:44:11 2000
+++ ltconfig Wed Jul 18 12:36:46 2001
+++ ltconfig Mon Aug 6 23:34:56 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
@ -27,7 +27,7 @@ $OpenBSD: patch-ltconfig,v 1.1.1.1 2001/07/18 21:35:17 pvalchev Exp $
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
@ -35,18 +35,23 @@ $OpenBSD: patch-ltconfig,v 1.1.1.1 2001/07/18 21:35:17 pvalchev Exp $
;;
os2*)
@@ -2021,13 +2035,10 @@ netbsd*)
@@ -2021,9 +2035,16 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
+ need_lib_prefix=no
+ need_version=no
+ file_magic_cmd=/usr/bin/file
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ shlibpath_overrides_runpath=no
+ else
+ deplibs_check_method='file_magic OpenBSD.* shared library'
+ shlibpath_overrides_runpath=yes
fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/07/18 21:35:17 pvalchev Exp $
$OpenBSD: patch-ltmain_sh,v 1.2 2001/08/07 06:36:38 pvalchev Exp $
--- ltmain.sh.orig Thu Oct 12 16:44:11 2000
+++ ltmain.sh Wed Jul 18 12:36:50 2001
+++ ltmain.sh Mon Aug 6 23:34:59 2001
@@ -1079,6 +1079,17 @@ compiler."
# These systems don't actually have c library (as such)
continue

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-ltconfig,v 1.1.1.1 2001/08/01 06:39:58 pvalchev Exp $
$OpenBSD: patch-ltconfig,v 1.2 2001/08/07 06:36:38 pvalchev Exp $
--- ltconfig.orig Fri Feb 23 16:28:29 2001
+++ ltconfig Tue Jul 31 12:18:57 2001
+++ ltconfig Mon Aug 6 23:59:29 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
@ -27,7 +27,7 @@ $OpenBSD: patch-ltconfig,v 1.1.1.1 2001/08/01 06:39:58 pvalchev Exp $
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
@ -35,18 +35,23 @@ $OpenBSD: patch-ltconfig,v 1.1.1.1 2001/08/01 06:39:58 pvalchev Exp $
;;
os2*)
@@ -2029,13 +2043,10 @@ netbsd*)
@@ -2029,9 +2043,16 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
+ need_lib_prefix=no
+ need_version=no
+ file_magic_cmd=/usr/bin/file
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ shlibpath_overrides_runpath=no
+ else
+ deplibs_check_method='file_magic OpenBSD.* shared library'
+ shlibpath_overrides_runpath=yes
fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/08/01 06:39:58 pvalchev Exp $
$OpenBSD: patch-ltmain_sh,v 1.2 2001/08/07 06:36:38 pvalchev Exp $
--- ltmain.sh.orig Fri Feb 23 16:28:29 2001
+++ ltmain.sh Tue Jul 31 12:18:59 2001
+++ ltmain.sh Mon Aug 6 23:59:31 2001
@@ -1079,6 +1079,17 @@ compiler."
# These systems don't actually have c library (as such)
continue