Skip to content

Commit 9c4a6b4

Browse files
committed
Fix pkg-config missing option
1 parent 779c7ce commit 9c4a6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/util/PkgConfigUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function getLibsArray(string $pkg_config_str, bool $force_short_na
3939
$libs = explode(' ', trim($result));
4040

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

0 commit comments

Comments
 (0)