21 lines
483 B
Makefile
21 lines
483 B
Makefile
# $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
|