summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-03-30 13:32:51 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-03-30 18:08:46 -0400
commit9f306618b169143237d8fad0a898f2accf0cdd28 (patch)
tree6b1843195c278efbfffe2974a14a1303e7fe5b8b /win32/Makefile.sub
parent0cb43034b416aaf28bf57ee34bc095fdcb659f33 (diff)
[Bug #18667] Define RUBY_API_VERSION on Windows
On other platforms, RUBY_SO_NAME is defined from RUBY_API_VERSION. ruby_version contains the ABI version, which is not needed. RUBY_API_VERSION is defined as MAJOR.MINOR.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5736
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 063e6938d5..74d9118ab9 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -156,7 +156,7 @@ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
RUBY_PROGRAM_VERSION = $(MAJOR).$(MINOR).$(TEENY)
!ifndef RUBY_SO_NAME
-RUBY_SO_NAME = $(RT)-$(RUBY_BASE_NAME)$(ruby_version:.=)
+RUBY_SO_NAME = $(RT)-$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)0
!if "$(ARCH)" != "i386"
RUBY_SO_NAME = $(ARCH)-$(RUBY_SO_NAME)
!endif