File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,7 @@ protected function buildEmbed(): void
271271
272272 shell ()->cd (SOURCE_PATH . '/php-src ' )
273273 ->exec (getenv ('SPC_CMD_PREFIX_PHP_MAKE ' ) . ' INSTALL_ROOT= ' . BUILD_ROOT_PATH . " {$ vars } install " )
274- // Workaround for https://github.com/php/php-src/issues/12082
275- ->exec ('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o ' )
276- ->exec ('mkdir ' . BUILD_ROOT_PATH . '/lib/php-o ' )
277- ->cd (BUILD_ROOT_PATH . '/lib/php-o ' )
278- ->exec ('ar x ' . BUILD_ROOT_PATH . '/lib/libphp.a ' )
279- ->exec ('rm ' . BUILD_ROOT_PATH . '/lib/libphp.a ' )
280- ->exec ('ar rcs ' . BUILD_ROOT_PATH . '/lib/libphp.a *.o ' )
281- ->exec ('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o ' );
274+ ->exec ('ar -t ' . BUILD_LIB_PATH . "/libphp.a | grep ' \\.a$' | xargs -n1 ar d " . BUILD_LIB_PATH . '/libphp.a ' );
282275 $ this ->patchPhpScripts ();
283276 }
284277
You can’t perform that action at this time.
0 commit comments