Created
December 10, 2016 02:26
-
-
Save taosx/4ef834d47430a139632c68484eaaf5ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile go with musl on archlinux | |
// replace musl-gcc with gcc or gcc-multilib if you don't want to compile for alpine linux | |
CC=$(which musl-gcc) go build --ldflags '-w -linkmode external -extldflags "-static"' main.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment