From 301f2d8a975b0269451521bfbb3b7e0c5a28905b Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 6 Jun 2025 17:02:35 +0700 Subject: [PATCH] nghttp2 has brotlienc and brotlidec too --- src/SPC/builder/unix/library/nghttp2.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SPC/builder/unix/library/nghttp2.php b/src/SPC/builder/unix/library/nghttp2.php index dbbb6415..202b2959 100644 --- a/src/SPC/builder/unix/library/nghttp2.php +++ b/src/SPC/builder/unix/library/nghttp2.php @@ -31,6 +31,12 @@ trait nghttp2 'jemalloc' => null, 'systemd' => null, ]); + if ($brotli = $this->builder->getLib('brotli')) { + /* @phpstan-ignore-next-line */ + $args .= ' --with-libbrotlidec=yes LIBBROTLIDEC_CFLAGS="-I' . BUILD_ROOT_PATH . '/include" LIBBROTLIDEC_LIBS="' . $brotli->getStaticLibFiles() . '"'; + /* @phpstan-ignore-next-line */ + $args .= ' --with-libbrotlienc=yes LIBBROTLIENC_CFLAGS="-I' . BUILD_ROOT_PATH . '/include" LIBBROTLIENC_LIBS="' . $brotli->getStaticLibFiles() . '"'; + } [,,$destdir] = SEPARATED_PATH;