As seen in #489, when you build Vulkan-Loader on a Linux distro (in my case Mageia), you can end up with this vulkan.pc file:
$ cat /usr/lib64/pkgconfig/vulkan.pc
prefix=/usr
exec_prefix=/usr
libdir=${exec_prefix}//usr/lib64
includedir=${prefix}/include
Name: Vulkan-Loader
Description: Vulkan Loader
Version: 1.2.154
Libs: -L${libdir} -lvulkan
Libs.private: -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
Cflags: -I${includedir}
The libdir is bogus (that's #489), but the Libs.private is too. I attempted fixing it in #214 but my CMake-fu is not strong enough to figure out the right way to filter out duplicates.
As seen in #489, when you build Vulkan-Loader on a Linux distro (in my case Mageia), you can end up with this
vulkan.pcfile:The
libdiris bogus (that's #489), but theLibs.privateis too. I attempted fixing it in #214 but my CMake-fu is not strong enough to figure out the right way to filter out duplicates.