fix mbstring support

This commit is contained in:
crazywhalecc 2023-03-19 00:15:13 +08:00
parent 3daafa0b0e
commit c93a4e843f
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 5 additions and 1 deletions

View File

@ -182,6 +182,10 @@ class Extension
$arg .= ' --with-event-openssl --with-openssl-dir="' . BUILD_ROOT_PATH . '"'; $arg .= ' --with-event-openssl --with-openssl-dir="' . BUILD_ROOT_PATH . '"';
} }
break;*/ break;*/
case 'mbstring':
$arg = ' --disable-mbregex ONIG_CFLAGS=-I"' . BUILD_ROOT_PATH . '" ' .
'ONIG_LIBS="' . $this->getLibFilesString() . '" ';
break;
case 'gmp': case 'gmp':
$arg = ' --with-gmp="' . BUILD_ROOT_PATH . '" '; $arg = ' --with-gmp="' . BUILD_ROOT_PATH . '" ';
break; break;

View File

@ -256,7 +256,7 @@ class MacOSBuilder extends BuilderBase
'cd ' . SOURCE_PATH . '/php-src && ' . 'cd ' . SOURCE_PATH . '/php-src && ' .
"make -j{$this->concurrency} " . "make -j{$this->concurrency} " .
'EXTRA_CFLAGS="-g -Os -fno-ident" ' . // 生成调试信息、优化编译后的尺寸、禁用标识符(如变量、函数名)缩短 'EXTRA_CFLAGS="-g -Os -fno-ident" ' . // 生成调试信息、优化编译后的尺寸、禁用标识符(如变量、函数名)缩短
"EXTRA_LIBS=\"{$extra_libs} -lresolv -lsqlite3\" " . "EXTRA_LIBS=\"{$extra_libs} -lresolv\" " .
// TODO: comment things // TODO: comment things
'cli &&' . 'cli &&' .
'dsymutil -f sapi/cli/php &&' . 'dsymutil -f sapi/cli/php &&' .