From fe7784efb0c925b2a83ddfccec9db337012580dc Mon Sep 17 00:00:00 2001 From: Terence Lee Date: Tue, 21 Jul 2015 19:38:59 -0500 Subject: support for crossbuild for windows (32 bit and 64 bit) using mingw --- mrbgem.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3