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