summaryrefslogtreecommitdiff
path: root/lang/ruby/rubyversion.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby/rubyversion.mk')
-rw-r--r--lang/ruby/rubyversion.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index 0e58ca8ddac..bd7a10f10e1 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.101 2013/07/21 02:27:45 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.102 2013/10/28 14:26:59 taca Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -338,7 +338,11 @@ RUBY_SHLIBVER= ${RUBY_VER}
RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
.endif
.elif ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
+.if ${_RUBY_VER_MINOR} == 0
+RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_API_MINOR}
+.else
RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
+.endif
.elif ${OPSYS} == "Darwin"
RUBY_SHLIB= ${RUBY_VER}.${RUBY_SHLIBVER}.${RUBY_SLEXT}
.if ${RUBY_VER} == "18"