summaryrefslogtreecommitdiff
path: root/net/openldap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/openldap/Makefile')
-rw-r--r--net/openldap/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openldap/Makefile b/net/openldap/Makefile
index 29219ba63c22..97ee82b14672 100644
--- a/net/openldap/Makefile
+++ b/net/openldap/Makefile
@@ -37,7 +37,7 @@ CONFIGURE_ARGS+= --enable-wrappers
.if defined(WITH_DB2)
BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db/
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/db2 -D_THREAD_SAFE" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/db2 ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --enable-ldbm \
--with-ldbm-api=db2