mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
suggestions, change openssldir
This commit is contained in:
parent
d902e70b4d
commit
af75ffaf24
@ -115,6 +115,10 @@ SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS="-g -fstack-protector-strong -fno-ident -fPIE
|
|||||||
; EXTRA_LDFLAGS for `make` php, can use -release to set a soname for libphp.so
|
; EXTRA_LDFLAGS for `make` php, can use -release to set a soname for libphp.so
|
||||||
SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS=""
|
SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS=""
|
||||||
|
|
||||||
|
; optional, path to openssl conf. This affects where openssl will look for the default CA.
|
||||||
|
; default on Debian/Alpine: /etc/ssl, default on RHEL: /etc/pki/tls
|
||||||
|
OPENSSLDIR=""
|
||||||
|
|
||||||
[macos]
|
[macos]
|
||||||
; build target: macho or macho (possibly we could support macho-universal in the future)
|
; build target: macho or macho (possibly we could support macho-universal in the future)
|
||||||
; Currently we do not support universal and cross-compilation for macOS.
|
; Currently we do not support universal and cross-compilation for macOS.
|
||||||
|
|||||||
@ -499,7 +499,9 @@
|
|||||||
"mysqlnd"
|
"mysqlnd"
|
||||||
],
|
],
|
||||||
"lib-depends": [
|
"lib-depends": [
|
||||||
"libsodium",
|
"libsodium"
|
||||||
|
],
|
||||||
|
"lib-suggests": [
|
||||||
"openssl"
|
"openssl"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -514,7 +516,9 @@
|
|||||||
"mysqlnd"
|
"mysqlnd"
|
||||||
],
|
],
|
||||||
"lib-depends": [
|
"lib-depends": [
|
||||||
"libsodium",
|
"libsodium"
|
||||||
|
],
|
||||||
|
"lib-suggests": [
|
||||||
"openssl"
|
"openssl"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -398,9 +398,6 @@ class Extension
|
|||||||
$dependency->buildShared([...$visited, $this->getName()]);
|
$dependency->buildShared([...$visited, $this->getName()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Config::getExt($this->getName(), 'type') === 'addon') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$this->builder->emitPatchPoint('before-shared-ext[' . $this->getName() . ']-build');
|
$this->builder->emitPatchPoint('before-shared-ext[' . $this->getName() . ']-build');
|
||||||
match (PHP_OS_FAMILY) {
|
match (PHP_OS_FAMILY) {
|
||||||
'Darwin', 'Linux' => $this->buildUnixShared(),
|
'Darwin', 'Linux' => $this->buildUnixShared(),
|
||||||
|
|||||||
@ -21,6 +21,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace SPC\builder\linux\library;
|
namespace SPC\builder\linux\library;
|
||||||
|
|
||||||
|
use SPC\builder\linux\SystemUtil;
|
||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
|
|
||||||
class openssl extends LinuxLibraryBase
|
class openssl extends LinuxLibraryBase
|
||||||
@ -51,8 +52,9 @@ class openssl extends LinuxLibraryBase
|
|||||||
$zlib_extra = '';
|
$zlib_extra = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$openssl_conf = getenv('OPENSSL_CONF');
|
$openssl_dir = getenv('OPENSSLDIR') ?: null;
|
||||||
$openssl_dir = $openssl_conf ? dirname($openssl_conf) : '/etc/ssl';
|
// 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);
|
$ex_lib = trim($ex_lib);
|
||||||
|
|
||||||
shell()->cd($this->source_dir)->initializeEnv($this)
|
shell()->cd($this->source_dir)->initializeEnv($this)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user