mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
test build libpq
This commit is contained in:
parent
400007c206
commit
6b23c90bba
@ -27,13 +27,13 @@ trait postgresql
|
|||||||
'libxslt' => 'libxslt',
|
'libxslt' => 'libxslt',
|
||||||
'icu' => 'icu-i18n',
|
'icu' => 'icu-i18n',
|
||||||
];
|
];
|
||||||
logger()->info(shell()->execWithResult("pkg-config --cflags-only-I --static {$packages}")[1][0]);
|
|
||||||
foreach ($optional_packages as $lib => $pkg) {
|
foreach ($optional_packages as $lib => $pkg) {
|
||||||
if ($this->getBuilder()->getLib($lib)) {
|
if ($this->getBuilder()->getLib($lib)) {
|
||||||
$packages .= ' ' . $pkg;
|
$packages .= ' ' . $pkg;
|
||||||
logger()->info(shell()->execWithResult("pkg-config --cflags-only-I --static {$pkg}")[1][0]);
|
logger()->debug(shell()->execWithResult("pkg-config --cflags-only-I --static {$pkg}")[1][0]);
|
||||||
logger()->info(shell()->execWithResult("pkg-config --libs-only-L --static {$pkg}")[1][0]);
|
logger()->debug(shell()->execWithResult("pkg-config --libs-only-L --static {$pkg}")[1][0]);
|
||||||
logger()->info(shell()->execWithResult("pkg-config --libs-only-l --static {$pkg}")[1][0]);
|
logger()->debug(shell()->execWithResult("pkg-config --libs-only-l --static {$pkg}")[1][0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +101,8 @@ trait postgresql
|
|||||||
->exec("rm -rf {$builddir}/lib/*.so")
|
->exec("rm -rf {$builddir}/lib/*.so")
|
||||||
->exec("rm -rf {$builddir}/lib/*.dylib");
|
->exec("rm -rf {$builddir}/lib/*.dylib");
|
||||||
|
|
||||||
logger()->info(shell()->execWithResult('pkg-config --cflags-only-I --static libpq')[1][0]);
|
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