openbsd-ports/security/nessus/patches/patch-nessus-libraries_ltconfig
matt 7328d212f1 - up to 1.0.6
- patch included libtools
- use ports gmp now that our gmp is gone
- make included scripts more readable
2000-12-28 16:07:05 +00:00

41 lines
1.2 KiB
Plaintext

$OpenBSD: patch-nessus-libraries_ltconfig,v 1.2 2000/12/28 16:07:06 matt Exp $
--- nessus-libraries/ltconfig.orig Mon Apr 3 11:12:48 2000
+++ nessus-libraries/ltconfig Sat Nov 25 19:35:03 2000
@@ -1396,10 +1396,18 @@ 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
+ 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 +2005,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'
+ finish_cmds=
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)