arch c flags

This commit is contained in:
Marc Henderkes 2025-03-10 11:46:53 +01:00
parent 40ea306008
commit c52ab62fa6
2 changed files with 2 additions and 2 deletions

View File

@ -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([

View File

@ -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([