Skip to content

Instantly share code, notes, and snippets.

@spacepluk
Created December 7, 2016 07:23
Show Gist options
  • Select an option

  • Save spacepluk/a36d3839bf3cefde3f04e1afd882872a to your computer and use it in GitHub Desktop.

Select an option

Save spacepluk/a36d3839bf3cefde3f04e1afd882872a to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index 1e0d478..94283be 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
+LDFLAGS := $(shell go run buildscripts/gen-ldflags.go) --extldflags "-static"
all: install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment