Skip to content

Commit 301f2d8

Browse files
committed
nghttp2 has brotlienc and brotlidec too
1 parent 500c19d commit 301f2d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SPC/builder/unix/library/nghttp2.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ protected function build(): void
3131
'jemalloc' => null,
3232
'systemd' => null,
3333
]);
34+
if ($brotli = $this->builder->getLib('brotli')) {
35+
/* @phpstan-ignore-next-line */
36+
$args .= ' --with-libbrotlidec=yes LIBBROTLIDEC_CFLAGS="-I' . BUILD_ROOT_PATH . '/include" LIBBROTLIDEC_LIBS="' . $brotli->getStaticLibFiles() . '"';
37+
/* @phpstan-ignore-next-line */
38+
$args .= ' --with-libbrotlienc=yes LIBBROTLIENC_CFLAGS="-I' . BUILD_ROOT_PATH . '/include" LIBBROTLIENC_LIBS="' . $brotli->getStaticLibFiles() . '"';
39+
}
3440

3541
[,,$destdir] = SEPARATED_PATH;
3642

0 commit comments

Comments
 (0)