How to build dynamic library with gollvm?

59 views
Skip to first unread message

Peng Deng

unread,
Jun 29, 2021, 10:06:11 AM6/29/21
to golang-nuts
Hi all

I want to build a dynamic go library with gollvm.
How could I do this?

Thank you.

Ian Lance Taylor

unread,
Jun 29, 2021, 12:47:49 PM6/29/21
to Peng Deng, golang-nuts
On Tue, Jun 29, 2021 at 7:06 AM Peng Deng <dws...@outlook.com> wrote:
>
> I want to build a dynamic go library with gollvm.
> How could I do this?

The usual was is "go build -buildmode=shared" or "go build
-buildmode=c-shared", depending on how you want to use the shared
library. See https://golang.org/cmd/go/#hdr-Build_modes.

Ian
Reply all
Reply to author
Forward
0 new messages