Sha256: a95e40688abb610fd21468d304492a1472fdd695ebeee7ddbf6dca8d56df55ce

Contents?: true

Size: 868 Bytes

Versions: 8

Compression:

Stored size: 868 Bytes

Contents

diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
index 8317a2a..5a1b3ea 100644
--- a/tasks/bin/cross-ruby.rake
+++ b/tasks/bin/cross-ruby.rake
@@ -116,10 +116,22 @@ RUBY_CC_VERSIONS.split(":").each do |ruby_cc_version|
         "--host=#{mingw_host}",
         "--target=#{mingw_target}",
         "--build=#{RUBY_BUILD}",
-        '--enable-shared',
+        '--enable-install-static-library',
+        '--disable-jit-support',
         '--disable-install-doc',
         '--with-ext=',
       ]
+      if mingw_host=~/darwin/
+        options += [
+          '--enable-static',
+          '--disable-shared',
+        ]
+      else
+        options += [
+          '--enable-static',
+          '--enable-shared',
+        ]
+      end
 
       # Force Winsock2 for Ruby 1.8, 1.9 defaults to it
       options << "--with-winsock2" if major == "1.8"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rake-compiler-dock-1.4.0 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.4.0.rc2 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.4.0.rc1 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.3.1 build/patches2/rake-compiler-1.2.2/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.3.0 build/patches2/rake-compiler-1.2.1/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.2.2 build/patches2/rake-compiler-1.1.6/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.2.1 build/patches2/rake-compiler-1.1.6/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.2.0 build/patches2/rake-compiler-1.1.6/0004-Enable-build-of-static-libruby.patch