mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
don't add empty dynamic list x)
This commit is contained in:
parent
4b4ae9b014
commit
2972ab31d7
@ -203,7 +203,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
unlink($file);
|
||||
}
|
||||
$symbolList = $this->getDynamicExportSymbolsFile();
|
||||
$dynamic_exports = ' -Wl,--dynamic-list=' . $symbolList;
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list=' . $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 = ' -Wl,--dynamic-list=' . $symbolList;
|
||||
$dynamic_exports = $symbolList ? (' -Wl,--dynamic-list=' . $symbolList) : '';
|
||||
}
|
||||
$extLdFlags = "-extldflags '-pie{$dynamic_exports}'";
|
||||
$muslTags = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user