summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-17 01:34:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-17 01:34:35 +0000
commit77c4a51cef777dbbd7b8e4b8e010d6c5d11f9208 (patch)
tree48f486e8680ecaabf19d65a428b5a130a7289e49 /ext/extmk.rb
parentb85e3e70eee6905e34eb8efae9db9f9eb75d94f8 (diff)
fix static-linked-ext
* ext/extmk.rb: EXTLDFLAGS also needs to be passed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 3f1f1ac..7122cc0 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -636,6 +636,7 @@ if $configure_only and $command_output
mf.puts "EXTOBJS = "
mf.puts "EXTLIBS = "
end
+ mf.puts "EXTLDFLAGS = #{$extflags}"
mf.puts
targets = %w[all install static install-so install-rb clean distclean realclean]
targets.each do |tgt|
@@ -649,7 +650,8 @@ if $configure_only and $command_output
mf.puts
mf.puts "#{rubies.join(' ')}: $(extensions:/.=/#{$force_static ? 'static' : 'all'})"
rubies.each do |tgt|
- mf.puts "#{tgt}:\n\t$(Q)$(MAKE) $(MFLAGS) EXTOBJS=\"$(EXTOBJS)\" EXTLIBS=\"$(EXTLIBS)\" $@"
+ mf.print "#{tgt}:\n\t$(Q)$(MAKE) "
+ mf.puts '$(MFLAGS) EXTOBJS="$(EXTOBJS)" EXTLIBS="$(EXTLIBS)" EXTLDFLAGS="$(EXTLDFLAGS)" $@'
end
mf.puts "ext/extinit.#{$OBJEXT}:\n\t$(Q)$(MAKE) $(MFLAGS) V=$(V) $@"
mf.puts