$NetBSD: patch-aa,v 1.2 2001/12/11 16:02:08 wiz Exp $ --- configure.orig Thu Sep 6 18:38:07 2001 +++ configure @@ -1822,7 +1822,7 @@ # 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 . . . . case "`(uname -sr) 2>/dev/null`" in @@ -1850,9 +1850,9 @@ rm -f conftest* if test $ac_R_nospace = yes; then echo "$ac_t""no" 1>&6 - X_LIBS="$X_LIBS -R$x_libraries" + X_LIBS="$X_LIBS -R$x_libraries -Wl,-R$x_libraries" else - LIBS="$ac_xsave_LIBS -R $x_libraries" + LIBS="$ac_xsave_LIBS -R $x_libraries -Wl,-R$x_libraries" cat > conftest.$ac_ext <&6 - X_LIBS="$X_LIBS -R $x_libraries" + X_LIBS="$X_LIBS -R $x_libraries -Wl,-R$x_libraries" else echo "$ac_t""neither works" 1>&6 fi