$NetBSD: patch-aa,v 1.1 2006/04/18 09:36:10 jgoamakf Exp $

--- configure.orig	2006-04-18 17:00:43.000000000 +0900
+++ configure	2006-04-18 17:01:17.000000000 +0900
@@ -1499,7 +1499,7 @@
 _ACEOF
 
   PG_CFLAGS=-I`${PG_CONFIG} --includedir`
-  PG_LDFLAGS="-L`${PG_CONFIG} --libdir`"
+  PG_LDFLAGS="-L`${PG_CONFIG} --libdir` -Wl,-R`${PG_CONFIG} --libdir`"
   PG_LIBS="-lpq"
   if ${PG_CONFIG} --configure | grep "with-openssl" > /dev/null; then
     PG_LIBS=${PG_LIBS}" -lssl"
