go build --ldflags '-s -w -linkmode external -extldflags "-static"' main.go
Created
January 5, 2018 06:57
-
-
Save untoreh/0ea2d820de0b5ee156f891068293f1a5 to your computer and use it in GitHub Desktop.
build a stripped golang binary with statically linked c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment