Fix gettext missing symbols on macOS

This commit is contained in:
crazywhalecc 2025-10-24 17:02:15 +08:00
parent da5c6fd084
commit c30b34ae5c
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -15,7 +15,7 @@ class gettext extends Extension
public function patchBeforeBuildconf(): bool public function patchBeforeBuildconf(): bool
{ {
if ($this->builder instanceof MacOSBuilder) { if ($this->builder instanceof MacOSBuilder) {
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/gettext/config.m4', 'AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB', 'AC_CHECK_LIB(intl'); FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/gettext/config.m4', 'AC_CHECK_LIB([$GETTEXT_CHECK_IN_LIB', 'AC_CHECK_LIB([intl');
} }
return true; return true;
} }