fix libkrb5 and decimal shard build

This commit is contained in:
henderkes
2026-04-16 13:46:12 +07:00
parent 73dd885342
commit a9c16b74d7
2 changed files with 9 additions and 2 deletions

View File

@@ -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',

View File

@@ -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',