summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-29 16:10:24 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-29 16:10:24 +0000
commitb8c26d48bcf47b9a5cff16e9177af20e5e8f3bfd (patch)
treee403715e73edb68c6206444897135109da372856 /ext/extmk.rb.in
parenta59cf8edc58d46e9cf5d39d2f1999e27939304a8 (diff)
* ext/extmk.rb.in, lib/mkmf.rb (have_library): accept -lm
unconditionally on mswin32/mingw32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 0652ac2..86dd67e 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -196,6 +196,7 @@ def have_library(lib, func="main")
if func && func != ""
libs = append_library($libs, lib)
if /mswin32|mingw/ =~ RUBY_PLATFORM
+ return true if lib == 'm'
r = try_link(<<"SRC", libs)
#include <windows.h>
#include <winsock.h>