mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb: Borland make needs also -D flags to override variables
in Makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bbb0bf8049
commit
96117996a0
1 changed files with 7 additions and 5 deletions
12
ext/extmk.rb
12
ext/extmk.rb
|
@ -503,12 +503,14 @@ $mflags.concat(rubies)
|
||||||
|
|
||||||
if $nmake == ?b
|
if $nmake == ?b
|
||||||
unless (vars = $mflags.grep(/\A\w+=/n)).empty?
|
unless (vars = $mflags.grep(/\A\w+=/n)).empty?
|
||||||
open(mkf = "libruby.mk", "wb") do |f|
|
open(mkf = "libruby.mk", "wb") do |tmf|
|
||||||
f.puts("!include Makefile")
|
tmf.puts("!include Makefile")
|
||||||
f.puts(*vars)
|
tmf.puts
|
||||||
f.puts("PRE_LIBRUBY_UPDATE = del #{mkf}")
|
tmf.puts(*vars.map {|v| v.sub(/=/, " = ")})
|
||||||
|
tmf.puts("PRE_LIBRUBY_UPDATE = del #{mkf}")
|
||||||
end
|
end
|
||||||
$mflags.delete_if(&/\A\w+=/n.method(:=~)).unshift("-f#{mkf}")
|
$mflags.unshift("-f#{mkf}")
|
||||||
|
vars.each {|flag| flag.sub!(/\A/, "-D")}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
system($make, *sysquote($mflags)) or exit($?.exitstatus)
|
system($make, *sysquote($mflags)) or exit($?.exitstatus)
|
||||||
|
|
Loading…
Reference in a new issue