Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only set PTHREAD_AUTO_VARS if the threads options is enabled.

Also move PTHREAD_OPTS to just above where pthread.buildlink3.mk is included.
  • Loading branch information...
commit 100db66d7b014d6175a79fe27e92ea237124dd75 1 parent cd81f3f
sbd authored
Showing with 4 additions and 4 deletions.
  1. +1 −3 net/bind99/Makefile
  2. +3 −1 net/bind99/options.mk
View
4 net/bind99/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2012/06/14 07:45:39 sbd Exp $
+# $NetBSD: Makefile,v 1.7 2012/07/10 07:52:46 sbd Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P/pl/}
@@ -54,8 +54,6 @@ PKG_USERS= ${BIND_USER}:${BIND_GROUP}
PKG_GECOS.${BIND_USER}= Named pseudo-user
PKG_HOME.${BIND_USER}= ${BIND_DIR}
-PTHREAD_OPTS+= native
-PTHREAD_AUTO_VARS= yes
DOCS= CHANGES FAQ README REDIRECT-NOTES
FILES_SUBST+= BIND_GROUP=${BIND_GROUP:Q} \
View
4 net/bind99/options.mk
@@ -1,9 +1,10 @@
-# $NetBSD: options.mk,v 1.1.1.1 2012/03/07 14:25:00 taca Exp $
+# $NetBSD: options.mk,v 1.2 2012/07/10 07:52:46 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.bind99
PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
PKG_SUPPORTED_OPTIONS+= inet6 threads mysql pgsql ldap dlz-filesystem
+PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
@@ -74,6 +75,7 @@ CONFIGURE_ARGS+= --disable-ipv6
### pthreads support (also see magic above)
###
.if !empty(PKG_OPTIONS:Mthreads)
+PTHREAD_AUTO_VARS= yes
CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
Please sign in to comment.
Something went wrong with that request. Please try again.