Add real pkg-config integration

This commit is contained in:
crazywhalecc
2025-07-22 17:23:13 +08:00
parent a98f72cc32
commit c8eb62e8f0
5 changed files with 165 additions and 61 deletions

View File

@@ -54,7 +54,7 @@ class SPCConfigUtilTest extends TestCase
$this->assertStringContainsString('-lphp', $result['libs']);
// has cpp
$result = (new SPCConfigUtil())->config(['swoole']);
$result = (new SPCConfigUtil())->config(['rar']);
$this->assertStringContainsString(PHP_OS_FAMILY === 'Darwin' ? '-lc++' : '-lstdc++', $result['libs']);
// has mimalloc.o in lib dir