summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-08-29 06:14:22 +0000
committerbjs <bjs@pkgsrc.org>2008-08-29 06:14:22 +0000
commit04c883553a1e5730acf52ffa9c15d7118d6016a0 (patch)
tree3af7217b77508e4c56f7000678eba0d644b5cf6c /benchmarks
parent0e2e7b6fb3fa48721286a64cf508110227bda116 (diff)
downloadpkgsrc-04c883553a1e5730acf52ffa9c15d7118d6016a0.tar.gz
Add missing options.mk which didn't make the last train out.
Diffstat (limited to 'benchmarks')
-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