$NetBSD: patch-aa,v 1.3 2000/05/11 20:54:53 dmcmahill Exp $

--- configure.orig	Sat Jul  3 08:20:28 1999
+++ configure	Thu May 11 15:50:37 2000
@@ -1707,5 +1707,5 @@
   # It would also be nice to do this for all -L options, not just this one.
   if test -n "$x_libraries"; then
-    X_LIBS="$X_LIBS -L$x_libraries"
+    X_LIBS="$X_LIBS -L$x_libraries -Wl,-R$x_libraries"
     # For Solaris; some versions of Sun CC require a space after -R and
     # others require no space.  Words are not sufficient . . . .
