diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-24 22:19:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-24 22:32:07 +0900 |
commit | 6af7212004c0b98f09350b53a032f94f3a1e666c (patch) | |
tree | 1699d2ba7cc2ef9c614155929b94566ea0800514 | |
parent | e0a7e5e13141a06103673b9d4ff21ca864ec38f9 (diff) |
Make extensions under `Gem.extension_api_version` directory
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6174
-rwxr-xr-x | ext/extmk.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index f080f2676a..b5ff735cc4 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -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 |