$NetBSD: patch-aa,v 1.1.1.1 2001/02/09 23:41:34 jtb Exp $ --- configure.orig Thu Nov 16 18:08:36 2000 +++ configure @@ -1229,7 +1229,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 -R$x_libraries -L$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 @@ -1764,7 +1764,7 @@ # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS="$LDFLAGS" - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -R$x_libraries -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. @@ -2462,7 +2462,7 @@ if test $do_udunits = true; then DO_UDUNITS_LINE="INC_UDUNITS = -DINC_UDUNITS" DO_UDUNITS_INCDIR="UDUNITSINCDIR = -I$UDUNITS_INCDIR" - DO_UDUNITS_LIBDIR="UDUNITSLIBDIR = -L$UDUNITS_LIBDIR" + DO_UDUNITS_LIBDIR="UDUNITSLIBDIR = -Wl,-R$UDUNITS_LIBDIR -L$UDUNITS_LIBDIR" DO_UDUNITS_LIBNAME="UDUNITSLIB = -l$UDUNITS_LIBNAME" else echo "************************************************************************"