pgsql x86_64 fix?

This commit is contained in:
DubbleClick 2025-06-27 00:11:21 +07:00
parent d94542049c
commit 55d78579c8
2 changed files with 15 additions and 0 deletions

View File

@ -414,6 +414,7 @@ class Extension
// prepare configure args
shell()->cd($this->source_dir)
->setEnv($env)
->appendEnv($this->getExtraEnv())
->exec(BUILD_BIN_PATH . '/phpize');
if ($this->patchBeforeSharedConfigure()) {
@ -422,6 +423,7 @@ class Extension
shell()->cd($this->source_dir)
->setEnv($env)
->appendEnv($this->getExtraEnv())
->exec(
'./configure ' . $this->getUnixConfigureArg(true) .
' --with-php-config=' . BUILD_BIN_PATH . '/php-config ' .
@ -441,6 +443,7 @@ class Extension
shell()->cd($this->source_dir)
->setEnv($env)
->appendEnv($this->getExtraEnv())
->exec('make clean')
->exec('make -j' . $this->builder->concurrency)
->exec('make install');
@ -577,4 +580,9 @@ class Extension
}
return $deps;
}
protected function getExtraEnv(): array
{
return [];
}
}

View File

@ -57,4 +57,11 @@ class pgsql extends Extension
}
return '--with-pgsql=' . BUILD_ROOT_PATH;
}
protected function getExtraEnv(): array
{
return [
'CFLAGS' => '-Wno-int-conversion -Wno-implicit-function-declaration'
];
}
}