From aaee7e6b1b425445b332c6007b66b91df37b863a Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 21 Aug 2003 15:09:44 +0000 Subject: 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. --- Mk/bsd.ruby.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Mk') 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 -- cgit v1.1