2023-03-18 17:32:21 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\macos;
|
|
|
|
|
|
|
|
|
|
use SPC\builder\macos\library\MacOSLibraryBase;
|
2024-01-10 21:08:25 +08:00
|
|
|
use SPC\builder\unix\UnixBuilderBase;
|
2023-03-18 17:32:21 +08:00
|
|
|
use SPC\exception\FileSystemException;
|
|
|
|
|
use SPC\exception\RuntimeException;
|
2023-03-29 21:39:36 +08:00
|
|
|
use SPC\exception\WrongUsageException;
|
2023-10-01 01:32:43 +08:00
|
|
|
use SPC\store\FileSystem;
|
2023-04-30 12:42:19 +08:00
|
|
|
use SPC\store\SourcePatcher;
|
2024-04-07 15:52:24 +08:00
|
|
|
use SPC\util\GlobalEnvManager;
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-01-10 21:08:25 +08:00
|
|
|
class MacOSBuilder extends UnixBuilderBase
|
2023-03-18 17:32:21 +08:00
|
|
|
{
|
2023-08-20 19:51:45 +08:00
|
|
|
/** @var bool Micro patch phar flag */
|
2023-03-18 17:32:21 +08:00
|
|
|
private bool $phar_patched = false;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @throws RuntimeException
|
2023-03-29 21:39:36 +08:00
|
|
|
* @throws WrongUsageException
|
2023-08-20 19:51:45 +08:00
|
|
|
* @throws FileSystemException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
2023-08-20 19:51:45 +08:00
|
|
|
public function __construct(array $options = [])
|
2023-03-18 17:32:21 +08:00
|
|
|
{
|
2023-08-20 19:51:45 +08:00
|
|
|
$this->options = $options;
|
|
|
|
|
|
2024-04-07 15:52:24 +08:00
|
|
|
// apply global environment variables
|
|
|
|
|
GlobalEnvManager::init($this);
|
|
|
|
|
|
|
|
|
|
// ---------- set necessary compile vars ----------
|
2023-08-20 19:51:45 +08:00
|
|
|
// concurrency
|
2024-04-07 15:52:24 +08:00
|
|
|
$this->concurrency = intval(getenv('SPC_CONCURRENCY'));
|
2023-08-20 19:51:45 +08:00
|
|
|
// cflags
|
2024-04-07 15:52:24 +08:00
|
|
|
$this->arch_c_flags = getenv('SPC_DEFAULT_C_FLAGS');
|
|
|
|
|
$this->arch_cxx_flags = getenv('SPC_DEFAULT_CXX_FLAGS');
|
2023-08-20 19:51:45 +08:00
|
|
|
// cmake toolchain
|
2025-03-14 18:22:50 +08:00
|
|
|
$this->cmake_toolchain_file = SystemUtil::makeCmakeToolchainFile('Darwin', getenv('SPC_ARCH'), $this->arch_c_flags);
|
2023-08-20 19:51:45 +08:00
|
|
|
|
|
|
|
|
// create pkgconfig and include dir (some libs cannot create them automatically)
|
2023-03-18 17:32:21 +08:00
|
|
|
f_mkdir(BUILD_LIB_PATH . '/pkgconfig', recursive: true);
|
|
|
|
|
f_mkdir(BUILD_INCLUDE_PATH, recursive: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* Get dynamically linked macOS frameworks
|
2023-03-18 17:32:21 +08:00
|
|
|
*
|
2023-08-20 19:51:45 +08:00
|
|
|
* @param bool $asString If true, return as string
|
|
|
|
|
* @throws FileSystemException
|
|
|
|
|
* @throws WrongUsageException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
|
|
|
|
public function getFrameworks(bool $asString = false): array|string
|
|
|
|
|
{
|
|
|
|
|
$libs = [];
|
|
|
|
|
|
|
|
|
|
// reorder libs
|
|
|
|
|
foreach ($this->libs as $lib) {
|
|
|
|
|
foreach ($lib->getDependencies() as $dep) {
|
|
|
|
|
$libs[] = $dep;
|
|
|
|
|
}
|
|
|
|
|
$libs[] = $lib;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$frameworks = [];
|
|
|
|
|
/** @var MacOSLibraryBase $lib */
|
|
|
|
|
foreach ($libs as $lib) {
|
|
|
|
|
array_push($frameworks, ...$lib->getFrameworks());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($asString) {
|
|
|
|
|
return implode(' ', array_map(fn ($x) => "-framework {$x}", $frameworks));
|
|
|
|
|
}
|
|
|
|
|
return $frameworks;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* Just start to build statically linked php binary
|
|
|
|
|
*
|
2023-07-24 23:49:52 +08:00
|
|
|
* @param int $build_target build target
|
2023-03-18 17:32:21 +08:00
|
|
|
* @throws FileSystemException
|
2023-07-24 23:49:52 +08:00
|
|
|
* @throws RuntimeException
|
|
|
|
|
* @throws WrongUsageException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
2023-08-20 19:51:45 +08:00
|
|
|
public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
|
2023-03-18 17:32:21 +08:00
|
|
|
{
|
2024-04-07 15:52:24 +08:00
|
|
|
$extra_libs = getenv('SPC_EXTRA_LIBS') ?: '';
|
2023-08-20 19:51:45 +08:00
|
|
|
// ---------- Update extra-libs ----------
|
|
|
|
|
// add macOS frameworks
|
|
|
|
|
$extra_libs .= (empty($extra_libs) ? '' : ' ') . $this->getFrameworks(true);
|
|
|
|
|
// add libc++, some extensions or libraries need it (C++ cannot be linked statically)
|
2023-10-23 00:37:28 +08:00
|
|
|
$extra_libs .= (empty($extra_libs) ? '' : ' ') . ($this->hasCpp() ? '-lc++ ' : '');
|
2024-04-07 15:52:24 +08:00
|
|
|
// bloat means force-load all static libraries, even if they are not used
|
2023-08-20 19:51:45 +08:00
|
|
|
if (!$this->getOption('bloat', false)) {
|
|
|
|
|
$extra_libs .= (empty($extra_libs) ? '' : ' ') . implode(' ', $this->getAllStaticLibFiles());
|
2023-03-18 17:32:21 +08:00
|
|
|
} else {
|
|
|
|
|
logger()->info('bloat linking');
|
2023-08-20 19:51:45 +08:00
|
|
|
$extra_libs .= (empty($extra_libs) ? '' : ' ') . implode(' ', array_map(fn ($x) => "-Wl,-force_load,{$x}", array_filter($this->getAllStaticLibFiles())));
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|
2024-04-07 15:52:24 +08:00
|
|
|
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-01-03 15:57:05 +08:00
|
|
|
$this->emitPatchPoint('before-php-buildconf');
|
2023-07-28 23:45:39 +08:00
|
|
|
SourcePatcher::patchBeforeBuildconf($this);
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-04-07 15:52:24 +08:00
|
|
|
shell()->cd(SOURCE_PATH . '/php-src')->exec(getenv('SPC_CMD_PREFIX_PHP_BUILDCONF'));
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-01-03 15:57:05 +08:00
|
|
|
$this->emitPatchPoint('before-php-configure');
|
2023-07-28 23:45:39 +08:00
|
|
|
SourcePatcher::patchBeforeConfigure($this);
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2023-08-20 19:51:45 +08:00
|
|
|
$json_74 = $this->getPHPVersionID() < 80000 ? '--enable-json ' : '';
|
2023-08-21 12:47:06 +02:00
|
|
|
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals ' : '';
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-10-12 10:41:45 +02:00
|
|
|
$config_file_path = $this->getOption('with-config-file-path', false) ?
|
|
|
|
|
('--with-config-file-path=' . $this->getOption('with-config-file-path') . ' ') : '';
|
2024-10-18 14:46:00 +02:00
|
|
|
$config_file_scan_dir = $this->getOption('with-config-file-scan-dir', false) ?
|
|
|
|
|
('--with-config-file-scan-dir=' . $this->getOption('with-config-file-scan-dir') . ' ') : '';
|
2024-10-12 10:41:45 +02:00
|
|
|
|
2023-08-21 09:30:46 +02:00
|
|
|
$enableCli = ($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI;
|
|
|
|
|
$enableFpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
|
|
|
|
|
$enableMicro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
|
|
|
|
|
$enableEmbed = ($build_target & BUILD_TARGET_EMBED) === BUILD_TARGET_EMBED;
|
|
|
|
|
|
2024-01-03 10:31:21 +08:00
|
|
|
// prepare build php envs
|
2025-03-20 07:41:13 +01:00
|
|
|
$mimallocLibs = $this->getLib('mimalloc') !== null ? BUILD_LIB_PATH . '/mimalloc.o ' : '';
|
2024-01-03 10:31:21 +08:00
|
|
|
$envs_build_php = SystemUtil::makeEnvVarString([
|
2024-04-07 15:52:24 +08:00
|
|
|
'CFLAGS' => getenv('SPC_CMD_VAR_PHP_CONFIGURE_CFLAGS'),
|
|
|
|
|
'CPPFLAGS' => getenv('SPC_CMD_VAR_PHP_CONFIGURE_CPPFLAGS'),
|
|
|
|
|
'LDFLAGS' => getenv('SPC_CMD_VAR_PHP_CONFIGURE_LDFLAGS'),
|
2025-03-20 07:41:13 +01:00
|
|
|
'LIBS' => $mimallocLibs . getenv('SPC_CMD_VAR_PHP_CONFIGURE_LIBS'),
|
2024-01-03 10:31:21 +08:00
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
if ($this->getLib('postgresql')) {
|
|
|
|
|
shell()
|
|
|
|
|
->cd(SOURCE_PATH . '/php-src')
|
|
|
|
|
->exec(
|
|
|
|
|
'sed -i.backup "s/ac_cv_func_explicit_bzero\" = xyes/ac_cv_func_explicit_bzero\" = x_fake_yes/" ./configure'
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-10 16:15:47 +08:00
|
|
|
$embed_type = getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') ?: 'static';
|
2023-04-15 18:45:34 +08:00
|
|
|
shell()->cd(SOURCE_PATH . '/php-src')
|
|
|
|
|
->exec(
|
2024-04-07 15:52:24 +08:00
|
|
|
getenv('SPC_CMD_PREFIX_PHP_CONFIGURE') . ' ' .
|
2023-09-02 21:25:33 +02:00
|
|
|
($enableCli ? '--enable-cli ' : '--disable-cli ') .
|
|
|
|
|
($enableFpm ? '--enable-fpm ' : '--disable-fpm ') .
|
2025-03-10 16:15:47 +08:00
|
|
|
($enableEmbed ? "--enable-embed={$embed_type} " : '--disable-embed ') .
|
2023-09-02 21:25:33 +02:00
|
|
|
($enableMicro ? '--enable-micro ' : '--disable-micro ') .
|
2024-10-12 10:41:45 +02:00
|
|
|
$config_file_path .
|
2024-10-18 14:46:00 +02:00
|
|
|
$config_file_scan_dir .
|
2023-08-20 19:51:45 +08:00
|
|
|
$json_74 .
|
|
|
|
|
$zts .
|
2025-03-24 23:50:12 +08:00
|
|
|
$this->makeStaticExtensionArgs() . ' ' .
|
2024-01-03 10:31:21 +08:00
|
|
|
$envs_build_php
|
2023-04-15 18:45:34 +08:00
|
|
|
);
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2024-01-03 15:57:05 +08:00
|
|
|
$this->emitPatchPoint('before-php-make');
|
2023-07-28 23:45:39 +08:00
|
|
|
SourcePatcher::patchBeforeMake($this);
|
2023-04-30 12:42:19 +08:00
|
|
|
|
2023-03-26 22:27:51 +08:00
|
|
|
$this->cleanMake();
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2023-08-21 09:30:46 +02:00
|
|
|
if ($enableCli) {
|
2023-04-23 20:31:58 +08:00
|
|
|
logger()->info('building cli');
|
2023-08-20 19:51:45 +08:00
|
|
|
$this->buildCli();
|
2023-04-23 20:31:58 +08:00
|
|
|
}
|
2023-08-21 09:30:46 +02:00
|
|
|
if ($enableFpm) {
|
2023-04-23 20:31:58 +08:00
|
|
|
logger()->info('building fpm');
|
2023-08-20 19:51:45 +08:00
|
|
|
$this->buildFpm();
|
2023-04-23 20:31:58 +08:00
|
|
|
}
|
2023-08-21 09:30:46 +02:00
|
|
|
if ($enableMicro) {
|
2023-04-23 20:31:58 +08:00
|
|
|
logger()->info('building micro');
|
2023-08-20 19:51:45 +08:00
|
|
|
$this->buildMicro();
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|
2023-08-21 09:30:46 +02:00
|
|
|
if ($enableEmbed) {
|
|
|
|
|
logger()->info('building embed');
|
2023-10-01 01:32:43 +08:00
|
|
|
if ($enableMicro) {
|
|
|
|
|
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/Makefile', 'OVERALL_TARGET =', 'OVERALL_TARGET = libphp.la');
|
|
|
|
|
}
|
2023-08-21 09:30:46 +02:00
|
|
|
$this->buildEmbed();
|
|
|
|
|
}
|
2023-03-18 17:32:21 +08:00
|
|
|
|
2025-03-14 18:22:50 +08:00
|
|
|
$this->emitPatchPoint('before-sanity-check');
|
|
|
|
|
$this->sanityCheck($build_target);
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|
|
|
|
|
|
2025-05-21 18:35:48 +07:00
|
|
|
public function testPHP(int $build_target = BUILD_TARGET_NONE)
|
|
|
|
|
{
|
|
|
|
|
$this->emitPatchPoint('before-sanity-check');
|
|
|
|
|
$this->sanityCheck($build_target);
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-18 17:32:21 +08:00
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* Build cli sapi
|
2023-03-18 17:32:21 +08:00
|
|
|
*
|
|
|
|
|
* @throws RuntimeException
|
2023-04-23 20:31:58 +08:00
|
|
|
* @throws FileSystemException
|
|
|
|
|
*/
|
2024-01-10 11:10:40 +08:00
|
|
|
protected function buildCli(): void
|
2023-04-23 20:31:58 +08:00
|
|
|
{
|
2024-04-07 15:52:24 +08:00
|
|
|
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
2023-08-20 19:51:45 +08:00
|
|
|
|
2023-05-10 21:59:33 +08:00
|
|
|
$shell = shell()->cd(SOURCE_PATH . '/php-src');
|
2025-05-25 09:37:15 +07:00
|
|
|
$SPC_CMD_PREFIX_PHP_MAKE = getenv('SPC_CMD_PREFIX_PHP_MAKE') ?: 'make';
|
2025-05-25 10:47:32 +07:00
|
|
|
$shell->exec("{$SPC_CMD_PREFIX_PHP_MAKE} {$vars} cli");
|
2023-08-20 19:51:45 +08:00
|
|
|
if (!$this->getOption('no-strip', false)) {
|
2023-05-10 21:59:33 +08:00
|
|
|
$shell->exec('dsymutil -f sapi/cli/php')->exec('strip sapi/cli/php');
|
|
|
|
|
}
|
2023-04-23 20:31:58 +08:00
|
|
|
$this->deployBinary(BUILD_TARGET_CLI);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* Build phpmicro sapi
|
2023-04-23 20:31:58 +08:00
|
|
|
*
|
2023-10-23 00:37:28 +08:00
|
|
|
* @throws FileSystemException
|
|
|
|
|
* @throws RuntimeException
|
|
|
|
|
* @throws WrongUsageException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
2024-01-10 11:10:40 +08:00
|
|
|
protected function buildMicro(): void
|
2023-03-18 17:32:21 +08:00
|
|
|
{
|
2023-03-18 20:08:54 +08:00
|
|
|
if ($this->getPHPVersionID() < 80000) {
|
2023-10-23 00:37:28 +08:00
|
|
|
throw new WrongUsageException('phpmicro only support PHP >= 8.0!');
|
2023-03-18 20:08:54 +08:00
|
|
|
}
|
2023-03-18 17:32:21 +08:00
|
|
|
if ($this->getExt('phar')) {
|
|
|
|
|
$this->phar_patched = true;
|
2024-06-03 23:16:15 +08:00
|
|
|
SourcePatcher::patchMicroPhar($this->getPHPVersionID());
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|
|
|
|
|
|
2023-08-20 19:51:45 +08:00
|
|
|
$enable_fake_cli = $this->getOption('with-micro-fake-cli', false) ? ' -DPHP_MICRO_FAKE_CLI' : '';
|
2024-04-07 15:52:24 +08:00
|
|
|
$vars = $this->getMakeExtraVars();
|
|
|
|
|
|
|
|
|
|
// patch fake cli for micro
|
|
|
|
|
$vars['EXTRA_CFLAGS'] .= $enable_fake_cli;
|
2024-05-30 22:01:40 +08:00
|
|
|
if ($this->getOption('no-strip', false)) {
|
2023-08-20 19:51:45 +08:00
|
|
|
$vars['STRIP'] = 'dsymutil -f ';
|
|
|
|
|
}
|
|
|
|
|
$vars = SystemUtil::makeEnvVarString($vars);
|
|
|
|
|
|
2024-04-07 15:52:24 +08:00
|
|
|
shell()->cd(SOURCE_PATH . '/php-src')->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . " {$vars} micro");
|
|
|
|
|
|
2023-04-23 20:31:58 +08:00
|
|
|
$this->deployBinary(BUILD_TARGET_MICRO);
|
2023-09-23 17:00:42 +08:00
|
|
|
|
|
|
|
|
if ($this->phar_patched) {
|
2024-06-03 23:16:15 +08:00
|
|
|
SourcePatcher::unpatchMicroPhar();
|
2023-09-23 17:00:42 +08:00
|
|
|
}
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* Build fpm sapi
|
2023-03-18 17:32:21 +08:00
|
|
|
*
|
|
|
|
|
* @throws RuntimeException
|
2023-04-03 20:47:24 +08:00
|
|
|
* @throws FileSystemException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
2024-01-10 11:10:40 +08:00
|
|
|
protected function buildFpm(): void
|
2023-03-18 17:32:21 +08:00
|
|
|
{
|
2024-04-07 15:52:24 +08:00
|
|
|
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
2023-08-20 19:51:45 +08:00
|
|
|
|
2023-05-10 21:59:33 +08:00
|
|
|
$shell = shell()->cd(SOURCE_PATH . '/php-src');
|
2024-04-07 15:52:24 +08:00
|
|
|
$shell->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . " {$vars} fpm");
|
2023-08-20 19:51:45 +08:00
|
|
|
if (!$this->getOption('no-strip', false)) {
|
2023-05-10 21:59:33 +08:00
|
|
|
$shell->exec('dsymutil -f sapi/fpm/php-fpm')->exec('strip sapi/fpm/php-fpm');
|
|
|
|
|
}
|
2023-04-23 20:31:58 +08:00
|
|
|
$this->deployBinary(BUILD_TARGET_FPM);
|
2023-03-18 20:08:54 +08:00
|
|
|
}
|
2023-08-21 09:30:46 +02:00
|
|
|
|
2023-10-23 00:37:28 +08:00
|
|
|
/**
|
|
|
|
|
* Build embed sapi
|
|
|
|
|
*
|
|
|
|
|
* @throws RuntimeException
|
|
|
|
|
*/
|
2024-01-10 11:10:40 +08:00
|
|
|
protected function buildEmbed(): void
|
2023-08-21 09:30:46 +02:00
|
|
|
{
|
2024-04-07 15:52:24 +08:00
|
|
|
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
2023-08-21 09:30:46 +02:00
|
|
|
|
2024-04-07 15:52:24 +08:00
|
|
|
shell()->cd(SOURCE_PATH . '/php-src')
|
|
|
|
|
->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . ' INSTALL_ROOT=' . BUILD_ROOT_PATH . " {$vars} install")
|
2023-08-30 18:14:59 +02:00
|
|
|
// Workaround for https://github.com/php/php-src/issues/12082
|
2023-08-30 17:47:29 +02:00
|
|
|
->exec('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o')
|
|
|
|
|
->exec('mkdir ' . BUILD_ROOT_PATH . '/lib/php-o')
|
|
|
|
|
->cd(BUILD_ROOT_PATH . '/lib/php-o')
|
|
|
|
|
->exec('ar x ' . BUILD_ROOT_PATH . '/lib/libphp.a')
|
|
|
|
|
->exec('rm ' . BUILD_ROOT_PATH . '/lib/libphp.a')
|
|
|
|
|
->exec('ar rcs ' . BUILD_ROOT_PATH . '/lib/libphp.a *.o')
|
|
|
|
|
->exec('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o');
|
2025-03-24 23:50:12 +08:00
|
|
|
$this->patchPhpScripts();
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-07 15:52:24 +08:00
|
|
|
private function getMakeExtraVars(): array
|
2024-01-03 10:31:21 +08:00
|
|
|
{
|
|
|
|
|
return [
|
2024-04-07 15:52:24 +08:00
|
|
|
'EXTRA_CFLAGS' => getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS'),
|
|
|
|
|
'EXTRA_LIBS' => getenv('SPC_EXTRA_LIBS') . ' ' . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_LIBS'),
|
2024-01-03 10:31:21 +08:00
|
|
|
];
|
|
|
|
|
}
|
2023-03-18 17:32:21 +08:00
|
|
|
}
|