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
This commit is contained in:
parent
14d538d27f
commit
f578e02345
@ -576,7 +576,7 @@ Dir.chdir('gems')
|
|||||||
extout = $extout
|
extout = $extout
|
||||||
unless gems.empty?
|
unless gems.empty?
|
||||||
def self.timestamp_file(name, target_prefix = nil)
|
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
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -584,7 +584,7 @@ unless gems.empty?
|
|||||||
super(*args) do |conf|
|
super(*args) do |conf|
|
||||||
conf.find do |s|
|
conf.find do |s|
|
||||||
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
|
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
|
||||||
"#{$1}$(extout)/gems/$(arch)/#{@gemname}"
|
"#{$1}$(extout)/gems/$(arch)/#{@gemname}$(target_prefix)"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
conf << %{
|
conf << %{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user