summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index d14f9bd..1f9373a 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -341,7 +341,7 @@ def create_makefile(target)
end
$DLDFLAGS = CONFIG["DLDFLAGS"]
- if $configure_args['--enable-shared']
+ if $configure_args['--enable-shared'] or /cygwin|mingw/ == RUBY_PLATFORM
$libs = CONFIG["LIBRUBYARG"] + " " + $libs
$DLDFLAGS += " -L" + CONFIG["libdir"]
end