$NetBSD: patch-ad,v 1.1.1.1 2011/05/15 00:09:56 wiz Exp $

--- configure.orig	2011-03-16 18:27:36.000000000 +0000
+++ configure
@@ -5275,7 +5275,7 @@ fi
 
 
 if test "x$with_mpfr" != x; then
-  gmplibs="-L$with_mpfr/lib $gmplibs"
+  gmplibs="-L$with_mpfr/lib -Wl,-R${PREFIX}/lib $gmplibs"
   gmpinc="-I$with_mpfr/include $gmpinc"
 fi
 if test "x$with_mpfr_include" != x; then
