summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 04d559a54e..dd9fec456a 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -107,8 +107,10 @@ def extmake(target)
$extflags ||= ""
$extlibs ||= []
$extpath ||= []
- $extflags += " " + $DLDFLAGS unless $DLDFLAGS.empty?
- $extflags += " " + $LDFLAGS unless $LDFLAGS.empty?
+ unless $mswin
+ $extflags += " " + $DLDFLAGS unless $DLDFLAGS.empty?
+ $extflags += " " + $LDFLAGS unless $LDFLAGS.empty?
+ end
$extlibs = merge_libs($extlibs, $libs.split, $LOCAL_LIBS.split)
$extpath |= $LIBPATH
end