From 59f9143a3c8ad72efcf03c533dde0c206c52ce15 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 5 Jul 2025 10:49:36 +0800 Subject: [PATCH] Remove redundant postfix in openssl --- src/SPC/builder/linux/library/openssl.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SPC/builder/linux/library/openssl.php b/src/SPC/builder/linux/library/openssl.php index 76049ccc..3a4825c8 100644 --- a/src/SPC/builder/linux/library/openssl.php +++ b/src/SPC/builder/linux/library/openssl.php @@ -21,7 +21,6 @@ declare(strict_types=1); namespace SPC\builder\linux\library; -use SPC\builder\linux\SystemUtil; use SPC\exception\FileSystemException; use SPC\exception\RuntimeException; use SPC\exception\WrongUsageException; @@ -62,9 +61,6 @@ class openssl extends LinuxLibraryBase $ex_lib = trim($ex_lib); - /* @phpstan-ignore-next-line */ - $clang_postfix = SystemUtil::getCCType() === 'clang' && (GNU_ARCH === 'x86_64' || PHP_OS_FAMILY === 'Darwin') ? '-clang' : ''; - shell()->cd($this->source_dir)->initializeEnv($this) ->exec( "{$env} ./Configure no-shared {$extra} " . @@ -73,7 +69,7 @@ class openssl extends LinuxLibraryBase '--openssldir=/etc/ssl ' . "{$zlib_extra}" . 'no-legacy ' . - "linux-{$arch}{$clang_postfix}" + "linux-{$arch}" ) ->exec('make clean') ->exec("make -j{$this->builder->concurrency} CNF_EX_LIBS=\"{$ex_lib}\"")