Linux: Link libsquish directly when unbundling, .pc file unreliable

(cherry picked from commit b3b4f4c1c9)
This commit is contained in:
Rémi Verschelde 2023-07-06 15:32:42 +02:00 committed by Yuri Sizov
parent fa45bb63c6
commit 4c1c26979b
1 changed files with 2 additions and 1 deletions

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")