openbsd-ports/databases/iodbc/patches/patch-ltconfig
danh 409e4858fc - add NEED_VERSION.
- add HOMEPAGE.
- use included libtool; sync patches.
- /etc -> ${SYSCONFDIR}.
- split shared library out of PLIST and add PFRAG.shared.
2001-02-19 17:59:42 +00:00

53 lines
1.4 KiB
Plaintext

$OpenBSD: patch-ltconfig,v 1.1 2001/02/19 17:59:42 danh Exp $
--- ltconfig.orig Mon Feb 19 12:47:27 2001
+++ ltconfig Mon Feb 19 12:50:06 2001
@@ -1030,6 +1030,9 @@ cygwin* | mingw*)
freebsd2* | sunos4*)
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1262,10 +1265,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*)
@@ -1789,13 +1803,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*)