ruby/win32
Julien Marrec be7e5f1f85 Implements [Feature #3456]: Support pkgconf on windows
1. Store the `PKG_CONFIG` variable in Makefile.sub (or try to get it from the ENV var PKG_CONFIG in mkmf.rb)
2. Try to use --msvc-syntax, with a fallback to replacing -Lxxx with -libpath:xxx. --msvc-syntax has been in pkgconf since 1.4.0 (released 7 years ago). pkg-config (freedesktop), does not support it, hence the fallback.
3. The `try_ldflags` passes these `ldflags` as the `opt` parameter to the `link_command`, not as `ldflags`. Unix systems are forgiving in that regard, MSVC is not: as a result as passing them as `opt`, they (specifically the `/libpath:xxx` ones) end up passed before the `-link` command to `cl.exe` and it throws because it ignores it and therefore can't find the lib.

```
cl : Command line warning D9002 : ignoring unknown option '-libpath:C:/Users/julien/.conan2/p/libff3726d89a6255c/p/lib'
```
2024-12-23 11:52:14 +09:00
..
configure.bat Typofix 2024-12-02 10:32:05 +09:00
dir.h Add error checking to readdir, telldir, and closedir calls in dir.c 2024-09-12 10:04:10 -07:00
enc-setup.mak
file.c Windows: Remove compatibility to ancient MSVCRT API 2024-09-24 14:06:51 +09:00
file.h Add rb_w32_uspawn_process 2023-09-25 22:57:28 +09:00
ifchange.bat Fix --empty option of ifchange 2024-11-24 18:34:01 +09:00
makedirs.bat
Makefile.sub Implements [Feature #3456]: Support pkgconf on windows 2024-12-23 11:52:14 +09:00
mkexports.rb Win32: Remove unreferenced COMDAT from object files 2024-11-17 19:29:16 +09:00
resource.rb Use class methods of File over Kernel.open and IO.read 2022-12-01 02:28:49 +09:00
rm.bat
rmdirs.bat
rtname.cmd
ruby.manifest
setup.mak Win32: Allow arm64 platform 2024-12-17 20:25:05 +09:00
win32.c [win32] fix arm64 instruction decoding 2024-11-30 14:22:55 +09:00
winmain.c Win32: Expose wchar main routine only 2024-11-17 22:49:16 +09:00