Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / opensc / patches / patch-configure
blob0ea410f0576df5bf15eb47e5c21949645a6d6e76
1 $NetBSD: patch-configure,v 1.1 2012/10/24 08:33:51 manu Exp $
3 Make sure we do not link against -lpthread, as we only need mutexes
4 that can be found in libc.
6 Linking with -lpthread hurst with opensc-pkcs11.so since NetBSD-6.0
7 libpthread cannot be loaded by dlopen()
9 --- configure.orig      2011-07-15 10:46:59.000000000 +0000
10 +++ configure
11 @@ -12903,6 +12903,15 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
13  acx_pthread_ok=no
15 +case "${host_cpu}-${host_os}" in
16 +        *netbsd*)
17 +               acx_pthread_ok=yes
18 +               PTHREAD_CFLAGS=""
19 +               PTHREAD_LIBS=""
20 +               LIBS="$LIBS -lltdl"
21 +       ;;
22 +esac
24  # We used to check for pthread.h first, but this fails if pthread.h
25  # requires special compiler flags (e.g. on True64 or Sequent).
26  # It gets checked for in the link test anyway.