v.pkgconfig: improve pkg-config/#pkgconfig directive compatibility with the brew folder structure

This commit is contained in:
Delyan Angelov 2024-12-10 05:34:34 +02:00
parent bc7a844a64
commit c355a2a453

View File

@ -16,6 +16,8 @@ const default_paths = [
'/usr/lib/pkgconfig',
'/usr/share/pkgconfig',
'/opt/homebrew/lib/pkgconfig', // Brew on macOS
'/opt/homebrew/share/pkgconfig', // Brew on macOS. Needed for fish.pc, eigen3.pc, applewmproto.pc, fontsproto.pc, xextproto.pc, SPIRV-Headers.pc etc; seems like a legacy folder.
'/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/11', // Brew on macOS. Needed for zlib.pc, libcurl.pc, expat.pc and a few others; all the rest are symlinked in /opt/homebrew/lib/pkgconfig .
'/usr/local/libdata/pkgconfig', // FreeBSD
'/usr/libdata/pkgconfig', // FreeBSD
'/usr/lib/i386-linux-gnu/pkgconfig', // Debian 32bit