This commit is contained in:
DubbleClick 2025-06-05 09:50:14 +07:00
parent bb7e0f6f89
commit 499c281931
3 changed files with 4 additions and 6 deletions

View File

@ -58,8 +58,8 @@ trait curl
}
// lib:ngtcp2
if ($ngtcp2 = $this->builder->getLib('ngtcp2')) {
$extra .= '-DUSE_NGTCP2=ON '
/* @phpstan-ignore-next-line */.
$extra .= '-DUSE_NGTCP2=ON ' .
/* @phpstan-ignore-next-line */
'-DNGTCP2_LIBRARY="' . $ngtcp2->getStaticLibFiles(style: 'cmake') . '" ' .
'-DNGTCP2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" ';
} else {

View File

@ -26,7 +26,7 @@ trait nghttp3
->setEnv([
'CFLAGS' => $this->getLibExtraCFlags(),
'LDFLAGS' => $this->getLibExtraLdFlags(),
'LIBS' => $this->getLibExtraLibs()
'LIBS' => $this->getLibExtraLibs(),
])
->execWithEnv(
'./configure ' .

View File

@ -4,11 +4,9 @@ declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\builder\LibraryBase;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
use SPC\exception\WrongUsageException;
use SPC\store\FileSystem;
trait ngtcp2
{
@ -31,7 +29,7 @@ trait ngtcp2
->setEnv([
'CFLAGS' => $this->getLibExtraCFlags(),
'LDFLAGS' => $this->getLibExtraLdFlags(),
'LIBS' => $this->getLibExtraLibs()
'LIBS' => $this->getLibExtraLibs(),
])
->execWithEnv(
'./configure ' .