Jelajahi Sumber

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

Rémi Verschelde 2 tahun lalu
induk
melakukan
b3b4f4c1c9
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      platform/linuxbsd/detect.py

+ 2 - 1
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")