Merge pull request #79105 from akien-mga/linux-libsquish-lacks-pkgconfig

Linux: Link libsquish directly when unbundling, .pc file unreliable
This commit is contained in:
Rémi Verschelde 2023-07-08 18:22:18 +02:00
commit 79b31a8357
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -235,7 +235,8 @@ def configure(env: "Environment"):
env.ParseConfig("pkg-config libenet --cflags --libs")
if not env["builtin_squish"]:
env.ParseConfig("pkg-config libsquish --cflags --libs")
# libsquish doesn't reliably install its .pc file, so some distros lack it.
env.Append(LIBS=["libsquish"])
if not env["builtin_zstd"]:
env.ParseConfig("pkg-config libzstd --cflags --libs")