@@ -91,7 +91,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
9191 // prepare build php envs
9292 // $musl_flag = SPCTarget::getLibc() === 'musl' ? ' -D__MUSL__' : ' -U__MUSL__';
9393 $ php_configure_env = SystemUtil::makeEnvVarString ([
94- 'CFLAGS ' => getenv ('SPC_CMD_VAR_PHP_CONFIGURE_CFLAGS ' ),
94+ 'CFLAGS ' => getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS ' ),
9595 'CPPFLAGS ' => '-I ' . BUILD_INCLUDE_PATH , // . ' -Dsomethinghere', // . $musl_flag,
9696 'LDFLAGS ' => '-L ' . BUILD_LIB_PATH ,
9797 // 'LIBS' => SPCTarget::getRuntimeLibs(), // do not pass static libraries here yet, they may contain polyfills for libc functions!
@@ -284,10 +284,10 @@ protected function buildEmbed(): void
284284 // process libphp.so for shared embed
285285 $ libphpSo = BUILD_LIB_PATH . '/libphp.so ' ;
286286 if (file_exists ($ libphpSo )) {
287- // deploy libphp.so
288- $ this ->deployBinary ($ libphpSo , $ libphpSo , false );
289287 // post actions: rename libphp.so to libphp-<release>.so if -release is set in LDFLAGS
290288 $ this ->processLibphpSoFile ($ libphpSo );
289+ // deploy libphp.so
290+ $ this ->deployBinary ($ libphpSo , $ libphpSo , false );
291291 }
292292
293293 // process shared extensions build-with-php
0 commit comments