mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 15:25:36 +08:00
Fix pkg-config missing option
This commit is contained in:
@@ -39,7 +39,7 @@ class PkgConfigUtil
|
|||||||
$libs = explode(' ', trim($result));
|
$libs = explode(' ', trim($result));
|
||||||
|
|
||||||
// get other things
|
// 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
|
// convert libxxx.a to -L{path} -lxxx
|
||||||
$exp = explode(' ', trim($result));
|
$exp = explode(' ', trim($result));
|
||||||
foreach ($exp as $item) {
|
foreach ($exp as $item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user