Skip to content

Commit 7d87856

Browse files
committed
remove static libraries from libngtcp_crypto_ossl.a
1 parent cfa5253 commit 7d87856

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,10 @@ protected function build(): void
4949
->execWithEnv("make -j{$this->builder->concurrency}")
5050
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
5151
$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");
5257
}
5358
}

0 commit comments

Comments
 (0)