ngtcp2 patch la files

This commit is contained in:
DubbleClick 2025-06-07 20:29:19 +07:00
parent 2a39fb0bd5
commit a6ea49981d
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ trait ngtcp2
->execWithEnv("make -j{$this->builder->concurrency}")
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
$this->patchPkgconfPrefix(['libngtcp2.pc', 'libngtcp2_crypto_ossl.pc']);
$this->patchLaDependencyPrefix(['libngtcp2.la', 'libngtcp2_crypto_ossl.la']);
// on macOS, the static library may contain other static libraries?
// ld: archive member 'libssl.a' not a mach-o file in libngtcp2_crypto_ossl.a

View File

@ -57,7 +57,7 @@ $shared_extensions = match (PHP_OS_FAMILY) {
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
$with_libs = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => '',
'Linux', 'Darwin' => 'ngtcp2,nghttp2,nghttp3,libavif',
'Windows' => '',
};