53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
$OpenBSD: patch-ltconfig,v 1.1 2001/02/20 18:26:38 danh Exp $
|
|
--- ltconfig.orig Sat May 27 07:15:00 2000
|
|
+++ ltconfig Tue Feb 20 13:25:13 2001
|
|
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
|
|
with_gnu_ld=no
|
|
fi
|
|
;;
|
|
+openbsd*)
|
|
+ with_gnu_ld=no
|
|
+ ;;
|
|
|
|
esac
|
|
|
|
@@ -1402,10 +1405,21 @@ else
|
|
;;
|
|
|
|
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
|
|
+ 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*)
|
|
@@ -2021,13 +2035,10 @@ netbsd*)
|
|
|
|
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
|
|
+ deplibs_check_method='pass_all'
|
|
;;
|
|
|
|
os2*)
|