Skip to content

Duplicate libraries in pkg-config vulkan.pc's Libs.private #490

@akien-mga

Description

@akien-mga

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.

Metadata

Metadata

Labels

bugSomething isn't workingbuildAnything to do with building the repo

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions