revert DYLD_LIBRARY_PATH

This commit is contained in:
DubbleClick
2025-07-25 16:24:22 +07:00
parent a0edca5e5b
commit af63723794

View File

@@ -126,7 +126,11 @@ abstract class UnixBuilderBase extends BuilderBase
} }
// if someone changed to EMBED_TYPE=shared, we need to add LD_LIBRARY_PATH // if someone changed to EMBED_TYPE=shared, we need to add LD_LIBRARY_PATH
if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') { if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') {
if (PHP_OS_FAMILY === 'Darwin') {
$ext_path = 'DYLD_LIBRARY_PATH=' . BUILD_LIB_PATH . ':$DYLD_LIBRARY_PATH ';
} else {
$ext_path = 'LD_LIBRARY_PATH=' . BUILD_LIB_PATH . ':$LD_LIBRARY_PATH '; $ext_path = 'LD_LIBRARY_PATH=' . BUILD_LIB_PATH . ':$LD_LIBRARY_PATH ';
}
FileSystem::removeFileIfExists(BUILD_LIB_PATH . '/libphp.a'); FileSystem::removeFileIfExists(BUILD_LIB_PATH . '/libphp.a');
} else { } else {
$ext_path = ''; $ext_path = '';