summaryrefslogtreecommitdiff
path: root/benchmarks/iozone/options.mk
blob: 5a1a47184af8d2a6ee42194a3fc9c3ee92008390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: options.mk,v 1.3 2022/05/28 11:39:57 adam 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