mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
22 lines
479 B
PHP
22 lines
479 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\linux\library;
|
|
|
|
class curl extends LinuxLibraryBase
|
|
{
|
|
use \SPC\builder\unix\library\curl;
|
|
|
|
public const NAME = 'curl';
|
|
|
|
public function getStaticLibFiles(string $style = 'autoconf', bool $recursive = true): string
|
|
{
|
|
$libs = parent::getStaticLibFiles($style, $recursive);
|
|
if ($this->builder->getLib('openssl')) {
|
|
$libs .= ' -ldl -lpthread';
|
|
}
|
|
return $libs;
|
|
}
|
|
}
|