63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
$OpenBSD: patch-ltconfig,v 1.1 2001/02/20 22:07:48 danh Exp $
|
|
--- ltconfig.orig Tue Feb 20 17:01:27 2001
|
|
+++ ltconfig Tue Feb 20 17:06:36 2001
|
|
@@ -740,6 +740,13 @@ hardcode_minus_L=no
|
|
hardcode_shlibpath_var=unsupported
|
|
runpath_var=
|
|
|
|
+case "$host_os" in
|
|
+openbsd*)
|
|
+ with_gnu_ld=no
|
|
+ ;;
|
|
+
|
|
+esac
|
|
+
|
|
ld_shlibs=yes
|
|
if test "$with_gnu_ld" = yes; then
|
|
|
|
@@ -865,10 +872,21 @@ else
|
|
;;
|
|
|
|
openbsd*)
|
|
- archive_cmds='$LD -Bshareable -o $lib$libobjs'
|
|
- hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
+ case "$host_os" in
|
|
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
+ 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'
|
|
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
|
|
+ export_dynamic_flag_spec='${wl}-E'
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
os2*)
|
|
@@ -1216,11 +1234,19 @@ linux-gnu*)
|
|
fi
|
|
;;
|
|
|
|
-netbsd* | openbsd*)
|
|
+netbsd*)
|
|
+ version_type=sunos
|
|
+ library_names_spec='${libname}${release}.so$versuffix'
|
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
+ shlibpath_var=LD_LIBRARY_PATH
|
|
+ ;;
|
|
+
|
|
+openbsd*)
|
|
version_type=sunos
|
|
library_names_spec='${libname}${release}.so$versuffix'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
+ deplibs_check_method='pass_all'
|
|
;;
|
|
|
|
os2*)
|