$NetBSD: patch-aa,v 1.8 2005/03/14 15:46:18 wiz Exp $

--- configure.orig	2005-01-08 05:39:10.000000000 +0100
+++ configure
@@ -20262,7 +20262,7 @@ echo $ECHO_N "checking whether X11 suppo
 if test "x$have_x" = "xyes"; then
   x_dir="/usr/X11R6";
   x_cflags="-I"$x_dir"/include"
-  x_libs="-L"$x_dir"/lib -lX11 -lXext"
+  x_libs="-Wl,-R"$x_dir"/lib -L"$x_dir"/lib -lX11 -lXext"
   echo "$as_me:$LINENO: result: enabling X11 support" >&5
 echo "${ECHO_T}enabling X11 support" >&6
 
