mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
macos?
This commit is contained in:
parent
2972ab31d7
commit
190be6c7b9
@ -203,7 +203,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
unlink($file);
|
||||
}
|
||||
$symbolList = $this->getDynamicExportSymbolsFile();
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list=' . $symbolList) : '';
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list' . (SPCTarget::getTargetOS() === 'Darwin' ? '-file' : '') . '=' . $symbolList) : '';
|
||||
}
|
||||
[$ret, $out] = shell()->cd($sample_file_path)->execWithResult(getenv('CC') . ' -o embed embed.c ' . $lens . ' ' . $dynamic_exports);
|
||||
if ($ret !== 0) {
|
||||
@ -327,7 +327,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
$dynamic_exports = '';
|
||||
if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'static') {
|
||||
$symbolList = $this->getDynamicExportSymbolsFile();
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list=' . $symbolList) : '';
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list' . (SPCTarget::getTargetOS() === 'Darwin' ? '-file' : '') . '=' . $symbolList) : '';
|
||||
}
|
||||
$extLdFlags = "-extldflags '-pie{$dynamic_exports}'";
|
||||
$muslTags = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user