Created attachment 473184 [details, diff] enables static building of dev-lang/ruby A few patches to make crossdev for mingw-w64 play nice with ruby's ebuilds. Basic gist is that without the following patch to configure.in ruby-2.4.1 hardcodes 240 into the shared, static, and import library names, which when built with the current ruby ebuilds results in names like libx64-msvcrt-ruby24240.dll and so on. The patch is in ruby-trunk[1], but may take a while to hit the tarballs that gentoo uses. Unsure of where to insert it into the ebuild, so I'll let the ruby team decide. In addition, a small adjustment to the ebuild itself to allow for building a static library; my primary use case is static builds for mkxp[2] for some of my less technically literate friends.
Created attachment 473186 [details, diff] dev-lang/ruby: remove hardcoded version number in libraries.
(In reply to ntzrmtthihu777+gentoo from comment #0) > Created attachment 473184 [details, diff] [details, diff] > enables static building of dev-lang/ruby > > A few patches to make crossdev for mingw-w64 play nice with ruby's ebuilds. > Basic gist is that without the following patch to configure.in ruby-2.4.1 > hardcodes 240 into the shared, static, and import library names, which when > built with the current ruby ebuilds results in names like > libx64-msvcrt-ruby24240.dll and so on. The patch is in ruby-trunk[1], but > may take a while > to hit the tarballs that gentoo uses. Unsure of where to insert it into the > ebuild, so I'll let the ruby team decide. > > In addition, a small adjustment to the ebuild itself to allow for building > a static library; my primary use case is static builds for mkxp[2] for some > of my less technically literate friends. [1] https://bugs.ruby-lang.org/issues/13296 [2] https://github.com/Ancurio/mkxp
Thanks for the patches. Both changes (static-libs and crossdev soname support) have been applied to ruby-2.4.1-r2.