$NetBSD: patch-ad,v 1.1.1.1 2009/09/18 11:24:50 dmcmahill Exp $

--- configure.orig	2010-10-02 11:40:32.000000000 +0000
+++ configure
@@ -4532,7 +4532,7 @@ if test "${with_mpfr_lib+set}" = set; th
 fi;
 
 if test "x$with_mpfr" != x; then
-  gmplibs="-L$with_mpfr/lib $gmplibs"
+  gmplibs="-L$with_mpfr/lib ${COMPILER_RPATH_FLAG}$with_mpfr/lib $gmplibs"
   gmpinc="-I$with_mpfr/include"
 fi
 if test "x$with_mpfr_include" != x; then
