summaryrefslogtreecommitdiff
path: root/lang/ruby/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby/Makefile.common')
-rw-r--r--lang/ruby/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/ruby/Makefile.common b/lang/ruby/Makefile.common
index 400e558078b..afba2c7187a 100644
--- a/lang/ruby/Makefile.common
+++ b/lang/ruby/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.11 2006/09/07 15:40:00 taca Exp $
+# $NetBSD: Makefile.common,v 1.12 2006/09/08 02:36:51 taca Exp $
#
# Ruby base distribution common definition
@@ -40,3 +40,9 @@ PLIST_SUBST+= RUBY_SHLIBVER=${RUBY_SHLIBVER:Q} \
RUBY_NAME=${RUBY_NAME:Q}
.include "replace.mk"
+
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+= --disable-pthread
+.else
+CONFIGURE_ARGS+= --enable-pthread
+.endif