diff options
author | Joel Sing <joel@sing.id.au> | 2021-01-23 06:18:30 +1100 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-01-23 03:19:29 +0000 |
commit | 66ee8b158f0a9e9fdc6cc2118926cb4bea497128 (patch) | |
tree | 8f17bb23b73be35aa88143ec3b6e61da4f4cff44 /src | |
parent | 25c39e4fb5e5fc7c3840228158cd6f2345c9dc07 (diff) | |
download | go-66ee8b158f0a9e9fdc6cc2118926cb4bea497128.tar.gz go-66ee8b158f0a9e9fdc6cc2118926cb4bea497128.zip |
runtime: restore cgo_import_dynamic for libc.so on openbsd
This was removed in change 285692, however we need to explicitly pull libc.so
in when libpthread.so is being used. The current code works on openbsd/amd64
since we pull libc.so in via runtime/sys_openbsd2.go, however openbsd/arm64
does not do this currently.
Change-Id: Ibe93d936a22e69e2fe12620f6d27ccca7a91dba5
Reviewed-on: https://go-review.googlesource.com/c/go/+/285912
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/sys_openbsd.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/sys_openbsd.go b/src/runtime/sys_openbsd.go index 2d41ed0d462..fcddf4d6a56 100644 --- a/src/runtime/sys_openbsd.go +++ b/src/runtime/sys_openbsd.go @@ -57,3 +57,4 @@ func pthread_create_trampoline() //go:cgo_import_dynamic libc_pthread_sigmask pthread_sigmask "libpthread.so" //go:cgo_import_dynamic _ _ "libpthread.so" +//go:cgo_import_dynamic _ _ "libc.so" |