summaryrefslogtreecommitdiffhomepage
path: root/mrbgem.rake
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgem.rake')
-rw-r--r--mrbgem.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgem.rake b/mrbgem.rake
index 77ad101af..8120f7832 100644
--- a/mrbgem.rake
+++ b/mrbgem.rake
@@ -10,5 +10,7 @@ MRuby::Gem::Specification.new('mruby-io') do |spec|
#spec.cc.include_paths += ["C:/Windows/system/include"]
spec.linker.library_paths += ["C:/Windows/system"]
end
-
+ if build.kind_of?(MRuby::CrossBuild) && %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target)
+ spec.linker.libraries += ['ws2_32']
+ end
end