suggestions, change openssldir

This commit is contained in:
henderkes
2026-01-19 10:22:33 +01:00
parent d902e70b4d
commit af75ffaf24
4 changed files with 14 additions and 7 deletions

View File

@@ -398,9 +398,6 @@ class Extension
$dependency->buildShared([...$visited, $this->getName()]);
}
}
if (Config::getExt($this->getName(), 'type') === 'addon') {
return;
}
$this->builder->emitPatchPoint('before-shared-ext[' . $this->getName() . ']-build');
match (PHP_OS_FAMILY) {
'Darwin', 'Linux' => $this->buildUnixShared(),

View File

@@ -21,6 +21,7 @@ declare(strict_types=1);
namespace SPC\builder\linux\library;
use SPC\builder\linux\SystemUtil;
use SPC\store\FileSystem;
class openssl extends LinuxLibraryBase
@@ -51,8 +52,9 @@ class openssl extends LinuxLibraryBase
$zlib_extra = '';
}
$openssl_conf = getenv('OPENSSL_CONF');
$openssl_dir = $openssl_conf ? dirname($openssl_conf) : '/etc/ssl';
$openssl_dir = getenv('OPENSSLDIR') ?: null;
// TODO: in v3 use the following: $openssl_dir ??= SystemUtil::getOSRelease()['dist'] === 'redhat' ? '/etc/pki/tls' : '/etc/ssl';
$openssl_dir ??= '/etc/ssl';
$ex_lib = trim($ex_lib);
shell()->cd($this->source_dir)->initializeEnv($this)