Files
static-php-cli/src/SPC/builder/linux/library/curl.php

22 lines
521 B
PHP
Raw Normal View History

2023-03-21 00:25:46 +08:00
<?php
declare(strict_types=1);
namespace SPC\builder\linux\library;
class curl extends LinuxLibraryBase
{
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;
}
}