mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/-test-/win32/dln/extconf.rb: need import library for ordinal
entry even on mingw. [ruby-core:44441][Bug #6320] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ba3c640f5
commit
1ff181cf8c
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 19 09:39:57 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/-test-/win32/dln/extconf.rb: need import library for ordinal
|
||||
entry even on mingw. [ruby-core:44441][Bug #6320]
|
||||
|
||||
Thu Apr 19 09:35:15 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* random.c (random_init): Clarify that the default seed is
|
||||
|
|
|
@ -5,14 +5,18 @@ if $mingw or $mswin
|
|||
|
||||
create_makefile("-test-/win32/dln")
|
||||
m = File.read("Makefile")
|
||||
m.sub!(/^OBJS =.*/) {$&+" dlntest.#{$LIBEXT}"}
|
||||
dlntestlib = "dlntest.#{$LIBEXT}"
|
||||
m.sub!(/^OBJS =.*/) {"#{$&} #{dlntestlib}"}
|
||||
open("Makefile", "wb") do |mf|
|
||||
mf.puts m, "\n"
|
||||
sodir = $extout ? "$(RUBYARCHDIR)/" : ''
|
||||
mf.print "#{sodir}$(DLLIB): $(topdir)/dlntest.dll"
|
||||
mf.print "#{sodir}$(DLLIB): #{dlntestlib}"
|
||||
mf.puts
|
||||
mf.puts "#{dlntestlib}: $(topdir)/dlntest.dll"
|
||||
mf.puts
|
||||
if $mingw
|
||||
mf.puts "$(topdir)/dlntest.dll: DEFFILE := $(srcdir)/libdlntest.def"
|
||||
mf.puts "$(topdir)/dlntest.dll: DLDFLAGS += -Wl,--out-implib,#{dlntestlib}"
|
||||
end
|
||||
mf.puts depend_rules("$(topdir)/dlntest.dll: libdlntest.o libdlntest.def")
|
||||
mf.puts "\t$(ECHO) linking shared-object $(@F)\n"
|
||||
|
|
Loading…
Reference in a new issue