mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
test libpq build config
This commit is contained in:
parent
82e3a86f17
commit
266108b25f
@ -31,9 +31,11 @@ trait postgresql
|
||||
foreach ($optional_packages as $lib => $pkg) {
|
||||
if ($this->getBuilder()->getLib($lib)) {
|
||||
$packages .= ' ' . $pkg;
|
||||
logger()->debug(shell()->execWithResult("pkg-config --cflags-only-I --static {$pkg}")[1][0]);
|
||||
logger()->debug(shell()->execWithResult("pkg-config --libs-only-L --static {$pkg}")[1][0]);
|
||||
logger()->debug(shell()->execWithResult("pkg-config --libs-only-l --static {$pkg}")[1][0]);
|
||||
|
||||
$output = shell()->execWithResult("pkg-config --cflags --libs --static {$pkg}")[1][0];
|
||||
if (!empty($output[1][0])) {
|
||||
logger()->info($output[1][0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,9 +102,5 @@ trait postgresql
|
||||
->exec("rm -rf {$builddir}/lib/*.so.*")
|
||||
->exec("rm -rf {$builddir}/lib/*.so")
|
||||
->exec("rm -rf {$builddir}/lib/*.dylib");
|
||||
|
||||
logger()->debug(shell()->execWithResult('pkg-config --cflags-only-I --static libpq')[1][0]);
|
||||
logger()->debug(shell()->execWithResult('pkg-config --libs-only-L --static libpq')[1][0]);
|
||||
logger()->debug(shell()->execWithResult('pkg-config --libs-only-l --static libpq')[1][0]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user