2023-03-21 00:25:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\linux\library;
|
|
|
|
|
|
|
|
|
|
class curl extends LinuxLibraryBase
|
|
|
|
|
{
|
2023-04-29 18:59:47 +08:00
|
|
|
use \SPC\builder\unix\library\curl;
|
|
|
|
|
|
2023-03-21 00:25:46 +08:00
|
|
|
public const NAME = 'curl';
|
|
|
|
|
|
2025-06-10 15:33:41 +08:00
|
|
|
public function getStaticLibFiles(string $style = 'autoconf', bool $recursive = true, bool $include_self = true): string
|
2023-03-21 00:25:46 +08:00
|
|
|
{
|
2025-06-10 15:33:41 +08:00
|
|
|
$libs = parent::getStaticLibFiles($style, $recursive, $include_self);
|
2023-03-21 00:25:46 +08:00
|
|
|
if ($this->builder->getLib('openssl')) {
|
|
|
|
|
$libs .= ' -ldl -lpthread';
|
|
|
|
|
}
|
|
|
|
|
return $libs;
|
|
|
|
|
}
|
|
|
|
|
}
|