mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
check for SPC_LIBC
This commit is contained in:
parent
f40170ee6f
commit
d34fa0ba4e
@ -135,7 +135,7 @@ if ($argv[1] === 'install_upx_cmd') {
|
|||||||
if ($argv[1] === 'build_cmd' || $argv[1] === 'build_embed_cmd') {
|
if ($argv[1] === 'build_cmd' || $argv[1] === 'build_embed_cmd') {
|
||||||
$build_cmd = 'build ';
|
$build_cmd = 'build ';
|
||||||
$build_cmd .= quote2($final_extensions) . ' ';
|
$build_cmd .= quote2($final_extensions) . ' ';
|
||||||
$build_cmd .= $shared_extensions ? '--build-shared=' . quote2($shared_extensions) . ' ' : '';
|
$build_cmd .= $shared_extensions && getenv('SPC_LIBC') === 'glibc' ? '--build-shared=' . quote2($shared_extensions) . ' ' : '';
|
||||||
$build_cmd .= $zts ? '--enable-zts ' : '';
|
$build_cmd .= $zts ? '--enable-zts ' : '';
|
||||||
$build_cmd .= $no_strip ? '--no-strip ' : '';
|
$build_cmd .= $no_strip ? '--no-strip ' : '';
|
||||||
$build_cmd .= $upx ? '--with-upx-pack ' : '';
|
$build_cmd .= $upx ? '--with-upx-pack ' : '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user