Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=954351
Bug ID: 954351 Summary: mingw32-configure unsets PKG_CONFIG_PATH Product: Fedora Version: 18 Component: mingw32-filesystem Severity: unspecified Priority: unspecified Assignee: extras-orphan@fedoraproject.org Reporter: jdieter@lesbg.com QA Contact: extras-qa@fedoraproject.org CC: drizt@land.ru, erik-fedora@vanpienbroek.nl, extras-orphan@fedoraproject.org, fedora-mingw@lists.fedoraproject.org, kalevlember@gmail.com, lfarkas@lfarkas.org Category: ---
Description of problem: I am trying to cross-compile a program for Windows, and it needs a library that I've already cross-compiled. I set PKG_CONFIG_PATH to point to the directory that contains the .pc file for that library, but mingw32-configure unsets PKG_CONFIG_PATH and I can't compile my program
Version-Release number of selected component (if applicable): mingw32-filesystem-97-1.fc18.noarch
Additional info: This can be easily fixed by removing the following line from /etc/rpm/macros.mingw32 unset PKG_CONFIG_PATH; \
I've verified that if PKG_CONFIG_PATH isn't set, then mingw32-configure shows it as empty, but if it is configured, my program compiles correctly, using both public mingw libraries and my private library.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=954351
--- Comment #1 from Jonathan Dieter jdieter@lesbg.com --- I've just noticed that, at least according to the rpm changelog, this was already supposedly done back in 2011. Not sure how it got back in there.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=954351
Erik van Pienbroek erik-fedora@vanpienbroek.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|extras-orphan@fedoraproject |erik-fedora@vanpienbroek.nl |.org |
--- Comment #2 from Erik van Pienbroek erik-fedora@vanpienbroek.nl --- The unset is really required here. When building RPMs the PKG_CONFIG_PATH environment variable gets set by rpm automatically so that it points to %{_libdir}/pkgconfig. As we don't want to use any native libraries when cross-compiling this environment variable has to be unset first before running mingw32-configure (or %mingw32_configure in RPM terms)
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=954351
Erik van Pienbroek erik-fedora@vanpienbroek.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rjones@redhat.com Component|mingw32-filesystem |mingw-filesystem