summaryrefslogtreecommitdiff
path: root/benchmarks/iozone/options.mk
blob: e7a7a93e48d6df7fbe6d247908d83d8bd43c681c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $NetBSD: options.mk,v 1.1 2008/08/29 06:14:22 bjs Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.iozone
PKG_SUPPORTED_OPTIONS=	threads

CHECK_BUILTIN.pthread:=	yes
.  include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:=	no

.if !empty(USE_BUILTIN.pthread:M[Yy][Ee][Ss])
PKG_SUGGESTED_OPTIONS=	threads
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mthreads)
BUILDLINK_TRANSFORM+=	opt:-DNO_THREADS:-DTHREADS
PTHREAD_AUTO_VARS=	yes
PTHREAD_OPTS+=		require
.endif