Sha256: 2fd0fad6a7383e3c1d7da89289cf76b517c21597834367cfb4e02f0921e076aa

Contents?: true

Size: 1022 Bytes

Versions: 4

Compression:

Stored size: 1022 Bytes

Contents

diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
index 8317a2a3..8ed21718 100644
--- a/tasks/bin/cross-ruby.rake
+++ b/tasks/bin/cross-ruby.rake
@@ -116,11 +116,27 @@
         "--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
+
+      # https://github.com/docker-library/ruby/issues/308
+      options << "--with-coroutine=arm32" if major == "2.7" && mingw_target =~ /arm-linux-musl/
+
       # Force Winsock2 for Ruby 1.8, 1.9 defaults to it
       options << "--with-winsock2" if major == "1.8"
       options << "--prefix=#{install_dir}"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake-compiler-dock-1.5.2 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.5.1 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.5.0 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch
rake-compiler-dock-1.5.0.rc1 build/patches2/rake-compiler-1.2.5/0004-Enable-build-of-static-libruby.patch