mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
suggestions
This commit is contained in:
parent
00892c20fa
commit
ecdb94b429
@ -54,6 +54,6 @@ class liburing extends LinuxLibraryBase
|
||||
->make('library', with_clean: false)
|
||||
->exec("rm -rf {$this->getLibDir()}/liburing*.so*");
|
||||
|
||||
$this->patchPkgconfPrefix(['liburing.pc', 'liburing-ffi.pc']);
|
||||
$this->patchPkgconfPrefix();
|
||||
}
|
||||
}
|
||||
|
||||
@ -284,6 +284,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
$cflags = "{$this->arch_c_flags} {$config['cflags']} " . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS');
|
||||
$libs = $config['libs'];
|
||||
$libs .= PHP_OS_FAMILY === 'Linux' ? ' -lrt' : '';
|
||||
// Go's gcc driver doesn't automatically link against -lgcov or -lrt. Ugly, but necessary fix.
|
||||
if ((str_contains((string) getenv('SPC_DEFAULT_C_FLAGS'), '-fprofile') ||
|
||||
str_contains((string) getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS'), '-fprofile')) &&
|
||||
ToolchainManager::getToolchainClass() === GccNativeToolchain::class) {
|
||||
|
||||
@ -252,7 +252,7 @@ class BuildPHPCommand extends BuildCommand
|
||||
$path = FileSystem::convertPath("{$build_root_path}/modules/{$ext}.so");
|
||||
if (file_exists(BUILD_MODULES_PATH . "/{$ext}.so")) {
|
||||
logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}");
|
||||
} elseif (Config::getExt($ext, 'type', 'ext') !== 'addon') {
|
||||
} elseif (Config::getExt($ext, 'type') !== 'addon') {
|
||||
logger()->warning("Shared extension [{$ext}] not found, please check!");
|
||||
}
|
||||
}
|
||||
|
||||
@ -269,10 +269,12 @@ class SourcePatcher
|
||||
if ($version === '5.1.3') {
|
||||
self::patchFile('spc_fix_swoole_50513.patch', SOURCE_PATH . '/php-src/ext/swoole');
|
||||
}
|
||||
// remove when https://github.com/swoole/swoole-src/pull/5848 is merged
|
||||
self::patchFile('swoole_fix_date_time.patch', SOURCE_PATH . '/php-src/ext/swoole');
|
||||
// remove when https://github.com/swoole/swoole-src/pull/5847 is merged
|
||||
self::patchFile('swoole_fix_odbclibs.patch', SOURCE_PATH . '/php-src/ext/swoole');
|
||||
if (version_compare($version, '6.0.0', '>=') && version_compare($version, '6.1.0', '<')) {
|
||||
// remove when https://github.com/swoole/swoole-src/pull/5848 is merged
|
||||
self::patchFile('swoole_fix_date_time.patch', SOURCE_PATH . '/php-src/ext/swoole');
|
||||
// remove when https://github.com/swoole/swoole-src/pull/5847 is merged
|
||||
self::patchFile('swoole_fix_odbclibs.patch', SOURCE_PATH . '/php-src/ext/swoole');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user