From f29ee9517621cf09dbb27567a116104928db1373 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 6 Jun 2025 23:58:33 +0700 Subject: [PATCH] remove buildUnixShared method from xhprof --- src/SPC/builder/extension/xhprof.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/SPC/builder/extension/xhprof.php b/src/SPC/builder/extension/xhprof.php index 589ac583..afb22257 100644 --- a/src/SPC/builder/extension/xhprof.php +++ b/src/SPC/builder/extension/xhprof.php @@ -31,30 +31,4 @@ class xhprof extends Extension } return false; } - - public function buildUnixShared(): void - { - $config = (new SPCConfigUtil($this->builder))->config([$this->getName()]); - $env = [ - 'CFLAGS' => $config['cflags'], - 'LDFLAGS' => $config['ldflags'], - 'LIBS' => $config['libs'], - 'LD_LIBRARY_PATH' => BUILD_LIB_PATH, - ]; - // prepare configure args - shell()->cd($this->source_dir . '/extension') - ->setEnv($env) - ->execWithEnv(BUILD_BIN_PATH . '/phpize'); - - if ($this->patchBeforeSharedConfigure()) { - logger()->info('ext [ . ' . $this->getName() . '] patching before shared configure'); - } - - shell()->cd($this->source_dir . '/extension') - ->setEnv($env) - ->execWithEnv('./configure ' . $this->getUnixConfigureArg(true) . ' --with-php-config=' . BUILD_BIN_PATH . '/php-config --with-pic') - ->execWithEnv('make clean') - ->execWithEnv('make -j' . $this->builder->concurrency) - ->execWithEnv('make install'); - } }