1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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.
This commit is contained in:
Peter Zhu 2022-03-30 13:32:51 -04:00
parent 0cb43034b4
commit 9f306618b1
Notes: git 2022-03-31 07:09:09 +09:00

View file

@ -156,7 +156,7 @@ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
RUBY_PROGRAM_VERSION = $(MAJOR).$(MINOR).$(TEENY) RUBY_PROGRAM_VERSION = $(MAJOR).$(MINOR).$(TEENY)
!ifndef RUBY_SO_NAME !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" !if "$(ARCH)" != "i386"
RUBY_SO_NAME = $(ARCH)-$(RUBY_SO_NAME) RUBY_SO_NAME = $(ARCH)-$(RUBY_SO_NAME)
!endif !endif