Skip to content

Conversation

@SCLevi
Copy link

@SCLevi SCLevi commented Jan 22, 2024

No description provided.

@SCLevi SCLevi force-pushed the fix/windows-port-finishing branch from 2880744 to 79e77e8 Compare February 7, 2024 11:06
@raggi
Copy link
Member

raggi commented Nov 21, 2025

When I looked at this previously, I found that Go's support for buildmode=c-shared wasn't implemented for windows. How are you building the shared library?

@balazsbencs-sc
Copy link

Let me answer instead of Levi, since we've worked together on this a little bit: We are using TDM GCC on windows to build this.

$env:CGO_ENABLED = '1'
$env:CGO_LDFLAGS = '-lws2_32'
$env:CC = 'gcc'
go build -buildmode=c-shared -o libtailscale.dll -x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants