summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-08-21 15:09:44 +0000
committerknu <knu@FreeBSD.org>2003-08-21 15:09:44 +0000
commitaaee7e6b1b425445b332c6007b66b91df37b863a (patch)
treecc82d5436cdea9044995ad79efcc4e0aa57900cb /Mk
parentb5700a6f3f67b3ab0986c48971ac6ff9fe69abb9 (diff)
downloadFreeBSD-ports-aaee7e6b1b425445b332c6007b66b91df37b863a.zip
FreeBSD-ports-aaee7e6b1b425445b332c6007b66b91df37b863a.tar.gz
Nullify RUBY_WITH_PTHREAD for FreeBSD 5.1-RELEASE and later.
I have tested a few modules that worked fine. I hope such things as ruby_r will die soon. For FreeBSD 4.x and prior, ruby_r will forever be needed because the interpreter (ruby) linked with libc.so crashes when a module that is (indirectly) linked with libc_r.so, because stdio and stuff get inconsitent inside of them.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.ruby.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 821162d..a6daf45 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -184,6 +184,10 @@ CONFIGURE_TARGET= # empty
RUBY_CONFIGURE_ARGS+= --target="${RUBY_ARCH}" --program-prefix=""
+.if ${OSVERSION} >= 501000
+.undef RUBY_WITH_PTHREAD
+.endif
+
.if defined(RUBY_WITH_PTHREAD)
RUBY_CONFIGURE_ARGS+= --with-libc_r=yes
RUBY_R= _r
OpenPOWER on IntegriCloud