Skip to content

Commit

Permalink
Remove gettext, intl, uuid extensions because they cannot be supporte…
Browse files Browse the repository at this point in the history
…d on macOS. Optimize directory name.
  • Loading branch information
matyhtf committed Sep 12, 2024
1 parent 55233b3 commit c72adbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}

if ($p->isMacos()) {
$p->setExtraLdflags('-undefined dynamic_lookup -framework CoreFoundation -framework Security -fopenmp');
$p->setExtraLdflags('-undefined dynamic_lookup');
if (is_file('/usr/local/opt/llvm/bin/ld64.lld')) {
$p->withBinPath('/usr/local/opt/llvm/bin')
->withBinPath('/usr/local/opt/flex/bin')
Expand Down
4 changes: 2 additions & 2 deletions sapi/scripts/download-php-src-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

$poject_dir = realpath(__DIR__ . '/../../');
$php_version_tag = trim(file_get_contents($poject_dir . '/sapi/PHP-VERSION.conf'));
$php_source_folder = $poject_dir . "/pool/php-src/php-{$php_version_tag}";
$php_archive_file = $poject_dir . "/pool/php-tar/php-{$php_version_tag}.tar.gz";
$php_source_folder = $poject_dir . "/var/php-{$php_version_tag}";
$php_archive_file = $poject_dir . "/pool/php/php-{$php_version_tag}.tar.gz";
$download_dir = dirname($php_archive_file);

# 下载 PHP 源码
Expand Down
3 changes: 0 additions & 3 deletions sapi/src/builder/enabled_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
'phar',
'mysqlnd',
'mysqli',
'gettext',
'intl',
'uuid',
'fileinfo',
'pdo_mysql',
'soap',
Expand Down

0 comments on commit c72adbe

Please sign in to comment.