-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Would it be possible to add a mswin build with --disable-shared --enable-static --with-static-linked-ext --enable-load-relative options?
I've tried on a fork (and locally), can't seem to be make it work exactly, though it's close. It builds and all, but ruby -v does nothing unless I do use the manifest with the dlls provided by vcpkg (ruby_builtin_dlls).
I'm guessing there's a way to statically link those as well.
Should maybe try using pkgconf on windows instead of manually symlinking the DLLs to the ruby repo?
> C:\vcpkg\vcpkg.exe install --triplet=x64-windows pkgconf
> $env:PKG_CONFIG_PATH="C:\vcpkg\installed\x64-windows\lib\pkgconfig"
> C:\vcpkg\installed\x64-windows\tools\pkgconf\pkgconf.exe --libs openssl --msvc-syntax
/libpath:C:/vcpkg/installed/x64-windows/lib libssl.lib libcrypto.libI've got a patch (for several versions, here is 3.2.2): https://github.com/jmarrec/conan-recipes/blob/main/recipes/ruby/all/patches/0005-fix-pkg-config-on-windows-3.2.2.patch and an upstream PR to support pkgconf on windows: ruby/ruby#9815