Project

General

Profile

Actions

Feature #20233

closed

pkg-config not working on MSVC

Added by jmarrec (Julien Marrec) over 1 year ago. Updated 23 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:116555]

Description

The PKG_CONFIG variable is not respected in win32/Makefile.sub

Also, need to ideally use the --msvc-syntax flag (pkgconf 1.4.0, released 7 years ago, adds it).

But mostly, I realized that the try_ldflags in lib/mkmf.rb actually passes these ldflags as the opt parameter to the link_command function, and not as ldflags. While the UNIX systems are forgiving, the MSVC compiler is not, and because the flags are passed before the -link, MSVC complains that it ignores it and therefore cannot find the requested library.

Updated by kou (Kouhei Sutou) 23 days ago

Can we close this because https://github.com/ruby/ruby/pull/9815 was merged?

Actions #3

Updated by alanwu (Alan Wu) 23 days ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0