diff options
author | knu <knu@FreeBSD.org> | 2003-08-21 23:09:44 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2003-08-21 23:09:44 +0800 |
commit | aaee7e6b1b425445b332c6007b66b91df37b863a (patch) | |
tree | cc82d5436cdea9044995ad79efcc4e0aa57900cb /Mk/bsd.ruby.mk | |
parent | b5700a6f3f67b3ab0986c48971ac6ff9fe69abb9 (diff) | |
download | freebsd-ports-gnome-aaee7e6b1b425445b332c6007b66b91df37b863a.tar.gz freebsd-ports-gnome-aaee7e6b1b425445b332c6007b66b91df37b863a.tar.zst freebsd-ports-gnome-aaee7e6b1b425445b332c6007b66b91df37b863a.zip |
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/bsd.ruby.mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 821162dedc2b..a6daf4513b71 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 |