strip all may strip things needed for relocation on musl

This commit is contained in:
DubbleClick
2025-07-05 13:52:47 +07:00
parent e31e228d10
commit a191c136dc
3 changed files with 52 additions and 27 deletions

View File

@@ -363,8 +363,8 @@ abstract class UnixBuilderBase extends BuilderBase
if (!$this->getOption('no-strip', false) && file_exists(BUILD_BIN_PATH . '/frankenphp')) {
if (PHP_OS_FAMILY === 'Linux') {
shell()->cd(BUILD_BIN_PATH)->exec('strip --strip-all frankenphp');
} else { // macOS doesn't understand strip-all
shell()->cd(BUILD_BIN_PATH)->exec('strip --strip-unneeded frankenphp');
} else { // macOS doesn't understand strip-unneeded
shell()->cd(BUILD_BIN_PATH)->exec('strip -S frankenphp');
}
}