mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix ncurses
This commit is contained in:
parent
d275d6cc69
commit
a6d68b9ecf
@ -194,7 +194,7 @@ class SystemUtil
|
|||||||
/**
|
/**
|
||||||
* Get libc version string from ldd
|
* Get libc version string from ldd
|
||||||
*/
|
*/
|
||||||
public static function getLibcVersionIfExists(string $libc): ?string
|
public static function getLibcVersionIfExists(?string $libc = null): ?string
|
||||||
{
|
{
|
||||||
if (self::$libc_version !== null) {
|
if (self::$libc_version !== null) {
|
||||||
return self::$libc_version;
|
return self::$libc_version;
|
||||||
|
|||||||
@ -6,6 +6,7 @@ namespace SPC\builder\unix\library;
|
|||||||
|
|
||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
use SPC\util\executor\UnixAutoconfExecutor;
|
||||||
|
use SPC\util\SPCTarget;
|
||||||
|
|
||||||
trait ncurses
|
trait ncurses
|
||||||
{
|
{
|
||||||
@ -15,7 +16,7 @@ trait ncurses
|
|||||||
|
|
||||||
UnixAutoconfExecutor::create($this)
|
UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv([
|
->appendEnv([
|
||||||
'LDFLAGS' => getenv('SPC_LIBC') === 'musl' ? '-static' : '',
|
'LDFLAGS' => SPCTarget::isStatic() ? '-static' : '',
|
||||||
])
|
])
|
||||||
->configure(
|
->configure(
|
||||||
'--enable-overwrite',
|
'--enable-overwrite',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user