From ce31fe70cd2d73fb4326123113bbcbbabd685722 Mon Sep 17 00:00:00 2001 From: Zhen Lu Date: Wed, 13 Mar 2024 23:45:27 -0700 Subject: [PATCH] Add -pthread to cgo config --- lightspark-crypto-go/signing.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lightspark-crypto-go/signing.go b/lightspark-crypto-go/signing.go index 3142930..7054481 100644 --- a/lightspark-crypto-go/signing.go +++ b/lightspark-crypto-go/signing.go @@ -2,10 +2,10 @@ package lightspark_crypto // TODO(mhr): Dynamic linking? -// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/libs/darwin/amd64 -llightspark_crypto -// #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libs/darwin/arm64 -llightspark_crypto -// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/libs/linux/amd64 -Wl,-Bstatic -llightspark_crypto -Wl,-Bdynamic -// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/libs/linux/arm64 -Wl,-Bstatic -llightspark_crypto -Wl,-Bdynamic +// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/libs/darwin/amd64 -llightspark_crypto -pthread +// #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libs/darwin/arm64 -llightspark_crypto -pthread +// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/libs/linux/amd64 -Wl,-Bstatic -llightspark_crypto -Wl,-Bdynamic -pthread +// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/libs/linux/arm64 -Wl,-Bstatic -llightspark_crypto -Wl,-Bdynamic -pthread import "C" import ( "strings"