mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
![]() 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' ``` |
||
---|---|---|
.. | ||
configure.bat | ||
dir.h | ||
enc-setup.mak | ||
file.c | ||
file.h | ||
ifchange.bat | ||
makedirs.bat | ||
Makefile.sub | ||
mkexports.rb | ||
resource.rb | ||
rm.bat | ||
rmdirs.bat | ||
rtname.cmd | ||
ruby.manifest | ||
setup.mak | ||
win32.c | ||
winmain.c |