This commit is contained in:
DubbleClick 2025-05-21 14:29:49 +07:00
parent 3f8d297fb1
commit d349627fa1
3 changed files with 5 additions and 2 deletions

View File

@ -643,6 +643,9 @@
"arg-type": "with-prefix", "arg-type": "with-prefix",
"lib-depends": [ "lib-depends": [
"readline" "readline"
],
"target": [
"static"
] ]
}, },
"redis": { "redis": {

View File

@ -27,7 +27,7 @@ class readline extends Extension
public function getUnixConfigureArg(bool $shared = false): string public function getUnixConfigureArg(bool $shared = false): string
{ {
return '--without-libedit --with-readline=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH; return '--without-libedit --with-readline=' . BUILD_ROOT_PATH;
} }
public function buildUnixShared(): void public function buildUnixShared(): void

View File

@ -96,7 +96,7 @@ trait UnixLibraryTrait
// replace prefix // replace prefix
$file = FileSystem::readFile($realpath); $file = FileSystem::readFile($realpath);
$file = str_replace(' /lib/', ' ' . BUILD_LIB_PATH . '/', $file); $file = str_replace(' /lib/', ' ' . BUILD_LIB_PATH . '/', $file);
+ $file = preg_replace('/^libdir=.*$/m', "libdir='" . BUILD_LIB_PATH . "'", $file); $file = preg_replace('/^libdir=.*$/m', "libdir='" . BUILD_LIB_PATH . "'", $file);
FileSystem::writeFile($realpath, $file); FileSystem::writeFile($realpath, $file);
} }
} }