From 4c1c26979b4faffaf6e25dc756091f9f02de29fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 6 Jul 2023 15:32:42 +0200 Subject: [PATCH] Linux: Link libsquish directly when unbundling, .pc file unreliable (cherry picked from commit b3b4f4c1c9cc4a37c4f2ee3ad4720834274f3a38) --- platform/linuxbsd/detect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 6bde9233c26..ce743fbf8a8 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -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")