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

Make extensions under Gem.extension_api_version directory

This commit is contained in:
Nobuyoshi Nakada 2022-07-24 22:19:01 +09:00
parent e0a7e5e131
commit 6af7212004
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2022-07-24 23:34:13 +09:00

View file

@ -548,7 +548,8 @@ extend Module.new {
"TARGET_TOPDIR = $(topdir)/.bundle\n" "#{$1}$(TARGET_TOPDIR)"
}
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
"TARGET_GEM_DIR = $(TARGET_TOPDIR)/extensions/$(gem_platform)/$(ruby_version)/#{@gemname}\n"\
"TARGET_GEM_DIR = $(TARGET_TOPDIR)/extensions/$(gem_platform)"\
"/$(ruby_version)#{$enable_shared ? '' : '-static'}/#{@gemname}\n"\
"#{$1}$(TARGET_GEM_DIR)$(target_prefix)"
}
end