mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
Patch configure script to include liblber for ldap dependency
This commit is contained in:
@@ -73,6 +73,11 @@ class postgresql extends LibraryPackage
|
|||||||
|
|
||||||
FileSystem::resetDir("{$this->getSourceDir()}/build");
|
FileSystem::resetDir("{$this->getSourceDir()}/build");
|
||||||
|
|
||||||
|
if ($installer->isPackageResolved('ldap')) {
|
||||||
|
$ldap_libs = clean_spaces(implode(' ', PkgConfigUtil::getLibsArray('ldap')));
|
||||||
|
FileSystem::replaceFileStr("{$this->getSourceDir()}/configure", '-lldap', $ldap_libs);
|
||||||
|
}
|
||||||
|
|
||||||
// PHP source relies on the non-private encoding functions in libpgcommon.a
|
// PHP source relies on the non-private encoding functions in libpgcommon.a
|
||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
"{$this->getSourceDir()}/src/common/Makefile",
|
"{$this->getSourceDir()}/src/common/Makefile",
|
||||||
|
|||||||
Reference in New Issue
Block a user