remove static libraries from libngtcp_crypto_ossl.a

This commit is contained in:
DubbleClick 2025-06-07 10:23:10 +07:00
parent cfa525351a
commit 7d87856f4a

View File

@ -49,5 +49,10 @@ trait ngtcp2
->execWithEnv("make -j{$this->builder->concurrency}")
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
$this->patchPkgconfPrefix(['libngtcp2.pc', 'libngtcp2_crypto_ossl.pc']);
// 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
shell()->cd(BUILD_LIB_PATH)
->exec("ar -t libngtcp2_crypto_ossl.a | grep '\.a$' | xargs -n1 ar d libngtcp2_crypto_ossl.a");
}
}