$NetBSD: patch-aa,v 1.7 2007/03/23 20:04:13 drochner Exp $ --- gpgme/gpgme-config.in.orig 2007-01-26 06:28:37.000000000 +0100 +++ gpgme/gpgme-config.in @@ -29,8 +29,8 @@ libs_pth="@PTH_LDFLAGS@ @PTH_LIBS@" cflags_pth="@PTH_CFLAGS@" @HAVE_PTHREAD_TRUE@thread_modules="$thread_modules pthread" -libs_pthread="-lpthread" -cflags_pthread="" +libs_pthread="@PTHREAD_LIBS@" +cflags_pthread="@PTHREAD_CFLAGS@" # Configure glib. libs_glib="@GLIB_LIBS@" @@ -114,7 +114,7 @@ while test $# -gt 0; do ;; --libs) if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then - output="$output -L$libdir" + output="$output -Wl,-R$libdir -L$libdir" fi case "$thread_module" in pthread)