Welcome to the forum, Jatin. As for your question: you can check the repository for open issues on the subject of course and I would do the same myself , as I do not know them by heart. I also do not know yet what the GSoC will bring for this year. But let’s see what we can do here.
I’ve spent some time digging into the open issues as you suggested and found Issue #1109 (Absolute paths in fortran_stdlib.pc).
I’ve analyzed the root cause in export_pc.cmake. It appears that resolve_pc_libs defaults to absolute paths when it encounters IMPORTED targets like BLAS::BLAS. I’m currently working on a fix that leverages pkg_check_modules to use Requires.private instead, which should significantly improve portability for system packagers (like MSYS2).
I’ll be opening a PR for this shortly to get technical feedback from the maintainers. Thanks for the guidance!
Following your advice, I spent some time investigating the open issues and identified Issue #1109 (Absolute paths in fortran_stdlib.pc).
I’ve analyzed the root cause in config/export_pc.cmake and have opened a Pull Request with a fix. My implementation introduces a portable path-to-flag fallback mechanism and leverages pkg_check_modules to ensure implementation dependencies (BLAS/LAPACK) are correctly moved to private fields, significantly improving library relocatability.
I’ve verified the fix on a Windows/MinGW-W64 environment with external OpenBLAS. I’d appreciate any technical feedback you or the other maintainers might have!