openbsd-ports/lang/gcc/4.0/patches/patch-ltconfig
espie 18925bc515 basic ports for gcc 3.4 and gcc 4.0, restructured.
this should more or less compile and run tests on i386, but is not
guaranteed to do anything more yet...
2004-09-23 22:13:31 +00:00

28 lines
973 B
Plaintext

$OpenBSD: patch-ltconfig,v 1.1.1.1 2004/09/23 22:13:31 espie Exp $
--- ltconfig.orig Tue Apr 27 08:14:30 2004
+++ ltconfig Tue Sep 14 01:24:29 2004
@@ -625,7 +625,12 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds";;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds";;
+ esac
fi
# Source the script associated with the $tagname tag configuration.
@@ -1307,6 +1312,9 @@ openbsd*)
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ deplib_check_method=pass_all
+ sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib'
;;
os2*)