mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
linter
This commit is contained in:
parent
3f8d297fb1
commit
d349627fa1
@ -643,6 +643,9 @@
|
|||||||
"arg-type": "with-prefix",
|
"arg-type": "with-prefix",
|
||||||
"lib-depends": [
|
"lib-depends": [
|
||||||
"readline"
|
"readline"
|
||||||
|
],
|
||||||
|
"target": [
|
||||||
|
"static"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"redis": {
|
"redis": {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user