mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
fix libkrb5 and decimal shard build
This commit is contained in:
@@ -16,8 +16,14 @@ class decimal extends Extension
|
|||||||
{
|
{
|
||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
$this->source_dir . '/php_decimal.c',
|
$this->source_dir . '/php_decimal.c',
|
||||||
'zend_module_entry decimal_module_entry',
|
[
|
||||||
'zend_module_entry php_decimal_module_entry'
|
'zend_module_entry decimal_module_entry',
|
||||||
|
'ZEND_GET_MODULE(decimal)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'zend_module_entry php_decimal_module_entry',
|
||||||
|
'ZEND_GET_MODULE(php_decimal)'
|
||||||
|
]
|
||||||
);
|
);
|
||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
$this->source_dir . '/config.w32',
|
$this->source_dir . '/config.w32',
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ trait krb5
|
|||||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||||
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
||||||
->configure(...$args)
|
->configure(...$args)
|
||||||
|
->exec('find . -name Makefile -exec sed -i "s/-Werror=incompatible-pointer-types//g" {} +')
|
||||||
->make();
|
->make();
|
||||||
$this->patchPkgconfPrefix([
|
$this->patchPkgconfPrefix([
|
||||||
'krb5-gssapi.pc',
|
'krb5-gssapi.pc',
|
||||||
|
|||||||
Reference in New Issue
Block a user