openbsd-ports/lang/gfortran/patches/patch-ltconfig
steven 6f0b523996 import separate port of gfortran 4.2.1, in sync with the base compiler.
meant to be used on archs that have gcc4 in base, this doesn't require a
full gcc build from ports, and provides libgfortran as a subpackage.

idea from espie some months ago.
2010-10-10 17:39:06 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-ltconfig,v 1.1.1.1 2010/10/10 17:39:07 steven Exp $
--- ltconfig.orig Tue Jul 4 22:20:01 2006
+++ ltconfig Thu Oct 19 16:58:12 2006
@@ -184,6 +184,7 @@ PACKAGE=libtool
VERSION=1.4a-GCC3.0
TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)"
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_compile_shared='${CC-cc} -fPIC -DPIC -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
rm="rm -f"
@@ -626,7 +627,12 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="~$old_postinstall_cmds~\$RANLIB \$oldlib"
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="~$old_postinstall_cmds~\$RANLIB -t \$oldlib";;
+ *)
+ old_postinstall_cmds="~$old_postinstall_cmds~\$RANLIB \$oldlib";;
+ esac
fi
# Source the script associated with the $tagname tag configuration.
@@ -1306,8 +1312,11 @@ openbsd*)
need_version=no
fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ #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*)