I am cross-compiling https://github.com/cliffordwolf/icestorm.git for Windows 10 using mingw-w64 inside WSL (cross-compiling is what upstream has been doing, so I am trying to reuse that work). I already compiled the libftdi library dependency.
Upstream and others (https://rqou.com/jenkins/job/open-fpga-tools/job/icestorm-win64/691/console) seem to be hard-coding the libftdi library path to their install locations. I could be doing the same, but the icestorm Makefile already uses pkg-config, so we could make this work out of the box.
The problem is that libdir in libftdi1.pc points to $PREFIX/bin, rather than the lib directory, because shared libraries (DLLs) are typically installed in the same directory with the executable on Windows (they must be in the PATH or in the same directory with the executable for the dynamic linker to find it). The static library, however, is still installed in $PREFIX/lib.
What would you think about adding an optional alternative libdir, e.g. libdir_static, to indicate the location of static libraries, in case they are different from the location of the dynamic libraries?
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/11.