summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmarks/iozone/options.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/benchmarks/iozone/options.mk b/benchmarks/iozone/options.mk
new file mode 100644
index 00000000000..e7a7a93e48d
--- /dev/null
+++ b/benchmarks/iozone/options.mk
@@ -0,0 +1,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