Enable pthreads support on polarssl. OK jca@.

This commit is contained in:
juanfra 2016-08-27 07:46:50 +00:00
parent e431de9b1a
commit e30dc95cce
2 changed files with 29 additions and 2 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.15 2016/03/11 18:13:19 naddy Exp $
# $OpenBSD: Makefile,v 1.16 2016/08/27 07:46:50 juanfra Exp $
COMMENT= SSL library with an intuitive API and readable source code
DISTNAME= mbedtls-2.2.1
REVISION= 0
EXTRACT_SUFX= -gpl.tgz
# check SOVERSION
@ -26,7 +27,8 @@ MASTER_SITES= https://tls.mbed.org/download/
MODULES= devel/cmake
CONFIGURE_ARGS= -DUSE_SHARED_MBEDTLS_LIBRARY=ON
CONFIGURE_ARGS= -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DLINK_WITH_PTHREAD=ON
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mbedtls

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-include_mbedtls_config_h,v 1.1 2016/08/27 07:46:50 juanfra Exp $
MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C are required by
www/hiawatha.
--- include/mbedtls/config.h.orig Sat Aug 27 03:17:22 2016
+++ include/mbedtls/config.h Sat Aug 27 03:18:03 2016
@@ -1246,7 +1246,7 @@
*
* Uncomment this to enable pthread mutexes.
*/
-//#define MBEDTLS_THREADING_PTHREAD
+#define MBEDTLS_THREADING_PTHREAD
/**
* \def MBEDTLS_VERSION_FEATURES
@@ -2261,7 +2261,7 @@
*
* Enable this layer to allow use of mutexes within mbed TLS
*/
-//#define MBEDTLS_THREADING_C
+#define MBEDTLS_THREADING_C
/**
* \def MBEDTLS_TIMING_C