We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa5253 commit 7d87856Copy full SHA for 7d87856
src/SPC/builder/unix/library/ngtcp2.php
@@ -49,5 +49,10 @@ protected function build(): void
49
->execWithEnv("make -j{$this->builder->concurrency}")
50
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
51
$this->patchPkgconfPrefix(['libngtcp2.pc', 'libngtcp2_crypto_ossl.pc']);
52
+
53
+ // on macOS, the static library may contain other static libraries?
54
+ // ld: archive member 'libssl.a' not a mach-o file in libngtcp2_crypto_ossl.a
55
+ shell()->cd(BUILD_LIB_PATH)
56
+ ->exec("ar -t libngtcp2_crypto_ossl.a | grep '\.a$' | xargs -n1 ar d libngtcp2_crypto_ossl.a");
57
}
58
0 commit comments