Commit 7d8cbf1a authored by Rubyist's avatar Rubyist

Added Winsock 2 to list of libraries to use when building for Windows

targets
parent dacb8b62
......@@ -3,6 +3,12 @@ MRuby::Gem::Specification.new('mruby-socket') do |spec|
spec.authors = 'Internet Initiative Japan'
spec.cc.include_paths << "#{build.root}/src"
# If Windows, use winsock
if ( /mswin|mingw|win32/ =~ RUBY_PLATFORM ) then
spec.linker.libraries << "wsock32"
spec.linker.libraries << "ws2_32"
end
spec.add_dependency('mruby-io')
spec.add_dependency('mruby-pack')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment