From 7b1f727746bc1d4db51158f407686e77fffc3288 Mon Sep 17 00:00:00 2001 From: Zhen Lu Date: Thu, 14 Mar 2024 10:02:29 -0700 Subject: [PATCH] Add -pthread to cgo LDFLAGS (#54) --- 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"