summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 04:44:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 04:44:06 +0000
commitf578e02345dee744f6d8c8f14406b6651dbdbe0c (patch)
treeff2792821513908570e67b95be4435aa910658ee /ext/extmk.rb
parent14d538d27f88c068e2d23184e8141c4188b302c6 (diff)
extmk.rb: append target_prefix
* ext/extmk.rb (timestamp_file, create_makefile): should append target_prefix as RUBYARCHDIR does. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 2f320a6..dc4d181 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -576,7 +576,7 @@ Dir.chdir('gems')
extout = $extout
unless gems.empty?
def self.timestamp_file(name, target_prefix = nil)
- name = "$(arch)/gems/#{@gemname}" if name == '$(TARGET_SO_DIR)'
+ name = "$(arch)/gems/#{@gemname}$(target_prefix)" if name == '$(TARGET_SO_DIR)'
super
end
@@ -584,7 +584,7 @@ unless gems.empty?
super(*args) do |conf|
conf.find do |s|
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
- "#{$1}$(extout)/gems/$(arch)/#{@gemname}"
+ "#{$1}$(extout)/gems/$(arch)/#{@gemname}$(target_prefix)"
}
end
conf << %{