blob: b887d244a3d932c047392431f36b5e9b269b1c4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-aa,v 1.9 2011/03/03 11:39:47 adam Exp $
--- src/gpgme-config.in.orig 2009-10-23 13:44:56.000000000 +0000
+++ src/gpgme-config.in
@@ -35,8 +35,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@"
@@ -120,7 +120,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)
|