Skip to content

Commit 74cb300

Browse files
committed
chore: Skip -lpthread as libpthread is builtin in libSystem.dylib
1 parent 7276fab commit 74cb300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/linking_flags.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ case $(uname -s) in
4747
esac
4848
;;
4949
Darwin)
50-
COMMON_LIBS="camlstr base_stubs ssl_threads_stubs /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a cstruct_stubs lwt_unix_stubs bigarray unix pthread"
50+
COMMON_LIBS="camlstr base_stubs ssl_threads_stubs /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a cstruct_stubs lwt_unix_stubs bigarray unix"
51+
# `m` and `pthread` are built-in in libSystem
5152
echo '(-noautolink'
5253
for l in $EXTRA_LIBS $COMMON_LIBS; do
5354
if [ "${l%.a}" != "${l}" ]; then echo " -cclib $l"

0 commit comments

Comments
 (0)