$NetBSD: patch-ad,v 1.2 2011/12/22 14:14:22 wiz Exp $

--- configure.orig	2010-04-02 13:35:47.000000000 -0400
+++ configure
@@ -5395,7 +5395,7 @@ 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 $gmpinc"
 fi
 if test "x$with_mpfr_include" != x; then
