diff options
| author | Terence Lee <[email protected]> | 2015-07-21 19:38:59 -0500 |
|---|---|---|
| committer | Terence Lee <[email protected]> | 2015-07-23 12:39:05 -0500 |
| commit | fe7784efb0c925b2a83ddfccec9db337012580dc (patch) | |
| tree | 5688a40999c9130717658c930e9ff52c5a452e45 | |
| parent | 1b5c68567e719fda18605f5436d28a5349086b9b (diff) | |
| download | mruby-fe7784efb0c925b2a83ddfccec9db337012580dc.tar.gz mruby-fe7784efb0c925b2a83ddfccec9db337012580dc.zip | |
support for crossbuild for windows (32 bit and 64 bit) using mingw
| -rw-r--r-- | mrbgem.rake | 4 |
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 |
