$OpenBSD: patch-configure,v 1.4 2006/03/20 10:11:02 bernd Exp $
--- configure.orig	Sat Jan 21 15:48:13 2006
+++ configure	Sat Jan 21 15:47:55 2006
@@ -7551,7 +7551,7 @@ if test -z "$aix_libpath"; then aix_libp
       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
-	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+	hardcode_libdir_flag_spec='${wl}-R$libdir'
 	export_dynamic_flag_spec='${wl}-E'
       else
        case $host_os in
@@ -7561,7 +7561,7 @@ if test -z "$aix_libpath"; then aix_libp
 	   ;;
 	 *)
 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+	   hardcode_libdir_flag_spec='${wl}-R$libdir'
 	   ;;
        esac
       fi
