summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorJulien Marrec <julien.marrec@gmail.com>2024-02-02 09:40:38 +0100
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-12-23 11:52:14 +0900
commitbe7e5f1f85685a757bea6c8dae4e30914a5eec67 (patch)
treee52e07f50e1e91042ab0aa024e8e9bbc4898084f /include/ruby
parentc695536cc8ea4be69849394b0c64c974d52c603a (diff)
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' ```
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/9815
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions