mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-21 07:45:36 +08:00
pgsql x86_64 fix?
This commit is contained in:
@@ -414,6 +414,7 @@ class Extension
|
|||||||
// prepare configure args
|
// prepare configure args
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->setEnv($env)
|
->setEnv($env)
|
||||||
|
->appendEnv($this->getExtraEnv())
|
||||||
->exec(BUILD_BIN_PATH . '/phpize');
|
->exec(BUILD_BIN_PATH . '/phpize');
|
||||||
|
|
||||||
if ($this->patchBeforeSharedConfigure()) {
|
if ($this->patchBeforeSharedConfigure()) {
|
||||||
@@ -422,6 +423,7 @@ class Extension
|
|||||||
|
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->setEnv($env)
|
->setEnv($env)
|
||||||
|
->appendEnv($this->getExtraEnv())
|
||||||
->exec(
|
->exec(
|
||||||
'./configure ' . $this->getUnixConfigureArg(true) .
|
'./configure ' . $this->getUnixConfigureArg(true) .
|
||||||
' --with-php-config=' . BUILD_BIN_PATH . '/php-config ' .
|
' --with-php-config=' . BUILD_BIN_PATH . '/php-config ' .
|
||||||
@@ -441,6 +443,7 @@ class Extension
|
|||||||
|
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->setEnv($env)
|
->setEnv($env)
|
||||||
|
->appendEnv($this->getExtraEnv())
|
||||||
->exec('make clean')
|
->exec('make clean')
|
||||||
->exec('make -j' . $this->builder->concurrency)
|
->exec('make -j' . $this->builder->concurrency)
|
||||||
->exec('make install');
|
->exec('make install');
|
||||||
@@ -577,4 +580,9 @@ class Extension
|
|||||||
}
|
}
|
||||||
return $deps;
|
return $deps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getExtraEnv(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,4 +57,11 @@ class pgsql extends Extension
|
|||||||
}
|
}
|
||||||
return '--with-pgsql=' . BUILD_ROOT_PATH;
|
return '--with-pgsql=' . BUILD_ROOT_PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getExtraEnv(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'CFLAGS' => '-Wno-int-conversion -Wno-implicit-function-declaration'
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user