$NetBSD: patch-aa,v 1.6 2008/10/14 11:33:13 adam Exp $ --- src/libgcrypt-config.in.orig 2008-08-19 17:20:04.000000000 +0200 +++ src/libgcrypt-config.in @@ -147,7 +147,7 @@ if test "$echo_libs" = "yes"; then # Set up `libdirs'. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then - libdirs="-L$libdir" + libdirs="-L$libdir -Wl,-R@libdir@" fi # Set up `libs_final'.