mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
arch c flags
This commit is contained in:
parent
40ea306008
commit
c52ab62fa6
@ -13,7 +13,7 @@ trait attr
|
||||
*/
|
||||
protected function build(): void
|
||||
{
|
||||
$cflags = PHP_OS_FAMILY !== 'Linux' ? '-Wimplicit-function-declaration -Wno-int-conversion' : '';
|
||||
$cflags = PHP_OS_FAMILY !== 'Linux' ? "{$this->builder->arch_c_flags} -Wimplicit-function-declaration -Wno-int-conversion" : '';
|
||||
$ldflags = PHP_OS_FAMILY !== 'Linux' ? '' : '--static';
|
||||
shell()->cd($this->source_dir)
|
||||
->setEnv([
|
||||
|
||||
@ -29,7 +29,7 @@ trait libacl
|
||||
*/
|
||||
protected function build(): void
|
||||
{
|
||||
$cflags = PHP_OS_FAMILY !== 'Linux' ? '-Wimplicit-function-declaration -Wno-int-conversion' : '';
|
||||
$cflags = PHP_OS_FAMILY !== 'Linux' ? "{$this->builder->arch_c_flags} -Wimplicit-function-declaration -Wno-int-conversion" : '';
|
||||
$ldflags = '--static';
|
||||
shell()->cd($this->source_dir)
|
||||
->setEnv([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user