On Windows prefix behavior does not match pkg-config #176
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
pkg-config
on Windows will replace theprefix
with the path to its binary which is required considering everything on Windows is assumed to be portable.The exact
pkg-config
behavior is this:75fa8c2afb/glib/gwin32.c (L219-L308)
It can be simplified a bit for pkgconf's usage though.
This is probably a dumb patch but it seems to have the right result:
pkg-config
does also rewrite the lib and data dirs.I prefer to unconditionally set PKGCONF_PKG_PKGF_REDEFINE_PREFIX on
Windows, so that it could be opted out. See cli/main.c.
On Wed, Mar 7, 2018 at 4:23 PM, TingPing notifications@github.com wrote: