From 6202ba44f41eca77971612dcd2c0c8634c2e6545 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Thu, 5 Dec 2024 17:46:31 +0100 Subject: [PATCH] fix ldflags --- init_unix.go | 2 +- internal/ossl/ossl_cgo.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/init_unix.go b/init_unix.go index 5c09da86..dbf5ac44 100644 --- a/init_unix.go +++ b/init_unix.go @@ -2,7 +2,7 @@ package openssl -// #cgo LDFLAGS: -ldl -pthread +// #cgo LDFLAGS: -ldl // #include // #include import "C" diff --git a/internal/ossl/ossl_cgo.go b/internal/ossl/ossl_cgo.go index 04d2d52a..3f708d55 100644 --- a/internal/ossl/ossl_cgo.go +++ b/internal/ossl/ossl_cgo.go @@ -5,6 +5,7 @@ package ossl /* #include "ossl_extra.h" #include +#cgo linux LDFLAGS: -ldl -pthread */ import "C" import "unsafe"