mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move the target directory of bundled gems like as rubygems
This commit is contained in:
parent
17ce0b9b84
commit
d7afaf21f2
Notes:
git
2022-04-07 09:47:32 +09:00
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
# -*- mode: ruby; coding: us-ascii -*-
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Gem; end # only needs Gem::Platform
|
||||
require 'rubygems/platform'
|
||||
|
||||
# :stopdoc:
|
||||
$extension = nil
|
||||
$extstatic = nil
|
||||
|
@ -535,11 +538,12 @@ extend Module.new {
|
|||
super(*args) do |conf|
|
||||
conf.find do |s|
|
||||
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
|
||||
"TARGET_GEM_DIR = $(extout)/gems/$(arch)/#{@gemname}\n"\
|
||||
"TARGET_GEM_DIR = $(topdir)/.bundle/extensions/$(gem_platform)/$(ruby_version)/#{@gemname}\n"\
|
||||
"#{$1}$(TARGET_GEM_DIR)$(target_prefix)"
|
||||
}
|
||||
end
|
||||
conf.any? {|s| /^TARGET *= *\S/ =~ s} and conf << %{
|
||||
gem_platform = #{Gem::Platform.local}
|
||||
|
||||
# default target
|
||||
all:
|
||||
|
|
Loading…
Add table
Reference in a new issue