1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/extmk.rb.in, lib/mkmf.rb (have_library): print yes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-12-29 16:34:01 +00:00
parent 9e94232a0a
commit 3c4d5fd8bf
2 changed files with 8 additions and 2 deletions

View file

@ -191,7 +191,10 @@ def have_library(lib, func="main")
if func && func != ""
libs = append_library($libs, lib)
if /mswin32|mingw/ =~ RUBY_PLATFORM
return true if lib == 'm'
if lib == 'm'
print "yes\n"
return true
end
r = try_link(<<"SRC", libs)
#include <windows.h>
#include <winsock.h>

View file

@ -177,7 +177,10 @@ def have_library(lib, func="main")
if func && func != ""
libs = append_library($libs, lib)
if /mswin32|mingw/ =~ RUBY_PLATFORM
return true if lib == 'm'
if lib == 'm'
print "yes\n"
return true
end
r = try_link(<<"SRC", libs)
#include <windows.h>
#include <winsock.h>