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

22 lines
619 B
PHP
Raw Normal View History

2023-10-15 17:17:42 +08:00
<?php
declare(strict_types=1);
namespace SPC\builder\freebsd\library;
class curl extends BSDLibraryBase
{
use \SPC\builder\unix\library\curl;
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-10-15 17:17:42 +08:00
{
2025-06-10 15:33:41 +08:00
$libs = parent::getStaticLibFiles($style, $recursive, $include_self);
2023-10-15 17:17:42 +08:00
if ($this->builder->getLib('openssl')) {
$this->builder->setOption('extra-libs', $this->builder->getOption('extra-libs') . ' /usr/lib/libpthread.a /usr/lib/libdl.a');
}
return $libs;
}
}