File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ protected function sanityCheck(int $build_target): void
203203 unlink ($ file );
204204 }
205205 $ symbolList = $ this ->getDynamicExportSymbolsFile ();
206- $ dynamic_exports = $ symbolList ? (' -Wl,--dynamic-list= ' . $ symbolList ) : '' ;
206+ $ dynamic_exports = $ symbolList ? (' -Wl,--dynamic-list ' . (SPCTarget:: getTargetOS () === ' Darwin ' ? ' -file ' : '' ) . ' = ' . $ symbolList ) : '' ;
207207 }
208208 [$ ret , $ out ] = shell ()->cd ($ sample_file_path )->execWithResult (getenv ('CC ' ) . ' -o embed embed.c ' . $ lens . ' ' . $ dynamic_exports );
209209 if ($ ret !== 0 ) {
@@ -327,7 +327,7 @@ protected function buildFrankenphp(): void
327327 $ dynamic_exports = '' ;
328328 if (getenv ('SPC_CMD_VAR_PHP_EMBED_TYPE ' ) === 'static ' ) {
329329 $ symbolList = $ this ->getDynamicExportSymbolsFile ();
330- $ dynamic_exports = $ symbolList ? (' -Wl,--dynamic-list= ' . $ symbolList ) : '' ;
330+ $ dynamic_exports = $ symbolList ? (' -Wl,--dynamic-list ' . (SPCTarget:: getTargetOS () === ' Darwin ' ? ' -file ' : '' ) . ' = ' . $ symbolList ) : '' ;
331331 }
332332 $ extLdFlags = "-extldflags '-pie {$ dynamic_exports }' " ;
333333 $ muslTags = '' ;
You can’t perform that action at this time.
0 commit comments