mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 00:05:42 +08:00
bring back setting, some libraries don't build a static version if the shared one should also be built...
This commit is contained in:
@@ -56,10 +56,11 @@ class openssl extends LinuxLibraryBase
|
||||
// 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);
|
||||
$noShared = getenv('SPC_LINK_STATIC') ? 'no-shared' : '';
|
||||
|
||||
shell()->cd($this->source_dir)->initializeEnv($this)
|
||||
->exec(
|
||||
"./Configure {$extra} " .
|
||||
"./Configure {$noShared} {$extra} " .
|
||||
'--prefix=' . BUILD_ROOT_PATH . ' ' .
|
||||
'--libdir=' . BUILD_LIB_PATH . ' ' .
|
||||
"--openssldir={$openssl_dir} " .
|
||||
|
||||
Reference in New Issue
Block a user