Fix pkg-config missing option

This commit is contained in:
crazywhalecc 2025-07-23 09:57:09 +08:00
parent 779c7cec30
commit 9c4a6b46b6
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -39,7 +39,7 @@ class PkgConfigUtil
$libs = explode(' ', trim($result));
// get other things
$result = self::execWithResult("pkg-config --libs --libs-only-other {$pkg_config_str}");
$result = self::execWithResult("pkg-config --static --libs --libs-only-other {$pkg_config_str}");
// convert libxxx.a to -L{path} -lxxx
$exp = explode(' ', trim($result));
foreach ($exp as $item) {