openbsd-ports/x11/kde/toys2/patches/patch-admin_ltconfig
espie 0f05775687 very small, almost completely useless kde applications.
(now, who's going to write a blowfish for amor ?)
2000-12-18 00:46:03 +00:00

32 lines
1.2 KiB
Plaintext

--- admin/ltconfig.orig Fri Sep 22 13:10:22 2000
+++ admin/ltconfig Sun Nov 26 16:53:02 2000
@@ -620,6 +620,12 @@ old_archive_cmds='$AR $AR_FLAGS $oldlib$
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
+case "$host_os" in
+openbsd*)
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+ ;;
+esac
+
# Source the script associated with the $tagname tag configuration.
if test -n "$tagname"; then
. $ltmain
@@ -1135,6 +1141,15 @@ openbsd*)
need_lib_prefix=no
need_version=no
fi
+ file_magic_cmd='/usr/bin/env -i /usr/bin/file'
+ if $file_magic_cmd /usr/lib/libc.so.* | grep ELF >/dev/null; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ else
+ deplibs_check_method='file_magic OpenBSD/.* demand paged shared library.*'
+ fi
+ # trust our libraries, as libtool is abysmally stupid with libgcc
+ deplibs_check_method=pass_all
+ sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib /usr/local/lib/qt2'
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH