From 243ee632834aa29fc9da00d01c7d518c71b3d03c Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 15 Oct 2023 15:44:58 +0800 Subject: [PATCH] fix strip order for micro --- src/SPC/builder/freebsd/BSDBuilder.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SPC/builder/freebsd/BSDBuilder.php b/src/SPC/builder/freebsd/BSDBuilder.php index 1ad00565..64587c76 100644 --- a/src/SPC/builder/freebsd/BSDBuilder.php +++ b/src/SPC/builder/freebsd/BSDBuilder.php @@ -192,13 +192,14 @@ class BSDBuilder extends BuilderBase // link resolv library (macOS needs it) 'EXTRA_LIBS' => "{$this->getOption('extra-libs')} /usr/lib/libm.a", ]; - if (!$this->getOption('no-strip', false)) { - shell()->cd(SOURCE_PATH . '/php-src/sapi/micro')->exec('strip --strip-all micro.sfx'); - } $vars = SystemUtil::makeEnvVarString($vars); shell()->cd(SOURCE_PATH . '/php-src') ->exec("make -j{$this->concurrency} {$vars} micro"); + + if (!$this->getOption('no-strip', false)) { + shell()->cd(SOURCE_PATH . '/php-src/sapi/micro')->exec('strip --strip-all micro.sfx'); + } $this->deployBinary(BUILD_TARGET_MICRO); if ($this->phar_patched) {