mingw-w64 team mailing list archive
-
mingw-w64 team
-
Mailing list archive
-
Message #00084
[Bug 1327242] Re: x86_64-w64-mingw32-pkg-config ignores PKG_CONFIG_PATH
Hi,
Thanks for reporting this, it's nice to see the pkg-config wrapper is
useful!
The script is actually a symlink to /usr/share/pkg-config-crosswrapper,
which is provided by the pkg-config package. Fixing that would improve
the situation for every user of cross-pkg-config, so I'm reassigning
this bug to pkg-config.
Regards,
Stephen
** Also affects: pkg-config (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mingw-w64
Packaging Devs, which is subscribed to mingw-w64 in Ubuntu.
https://bugs.launchpad.net/bugs/1327242
Title:
x86_64-w64-mingw32-pkg-config ignores PKG_CONFIG_PATH
Status in “mingw-w64” package in Ubuntu:
New
Status in “pkg-config” package in Ubuntu:
New
Bug description:
The x86_64-w64-mingw32-pkg-config program (i.e. the mingw toolchain's
pkg-config) ignores the PKG_CONFIG_PATH environment variable. This
program is a simple shell script wrapper, and the offending line is as
follows:
PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig
pkg-config $@
This of course discards whatever PKG_CONFIG_PATH was set in the
environment. This causes the cross compilation of VLC to fail, because
it expects to be alble to link to libraries it provides by setting
PKG_CONFIG_PATH. The solution is to change the x86_64-w64-mingw32-pkg-
config script to do something like the following
if [ -n "$PKG_CONFIG_PATH" ]; then
EXISTING=":$PKG_CONFIG_PATH"
fi
PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig${EXISTING} pkg-config $@
I'd submit a patch but i'm not entirely sure where and how to do it!
If anyone has a few pointers on this that'd be great.
Environment:
Ubuntu 14.04 LTS
Package: mingw-w64-tools
Package version: 3.1.0-1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1327242/+subscriptions
References