summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2015-07-24 09:19:56 +0900
committerTomoyuki Sahara <[email protected]>2015-07-24 09:19:56 +0900
commit2d1134e9ea32080b96ca141abb06791bd98e5261 (patch)
tree5688a40999c9130717658c930e9ff52c5a452e45
parent1b5c68567e719fda18605f5436d28a5349086b9b (diff)
parentfe7784efb0c925b2a83ddfccec9db337012580dc (diff)
downloadmruby-2d1134e9ea32080b96ca141abb06791bd98e5261.tar.gz
mruby-2d1134e9ea32080b96ca141abb06791bd98e5261.zip
Merge pull request #41 from hone/cross_compile_windows
support for crossbuild for windows (32 bit and 64 bit) using mingw
-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