Skip to content

Commit

Permalink
dist: shrink the binaries by ~33%
Browse files Browse the repository at this point in the history
Mostly by stripping the binaries from symbols
  • Loading branch information
zimbatm committed Aug 7, 2023
1 parent 6060581 commit 3af1e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ install: all
dist:
@command -v gox >/dev/null || (echo "Could not generate dist because gox is missing. Run: go get -u github.com/mitchellh/gox"; false)
CGO_ENABLED=0 GOFLAGS="-trimpath" \
gox -output "$(DISTDIR)/direnv.{{.OS}}-{{.Arch}}" \
gox -rebuild -ldflags="-s -w" -output "$(DISTDIR)/direnv.{{.OS}}-{{.Arch}}" \
-osarch darwin/amd64 \
-osarch darwin/arm64 \
-osarch freebsd/386 \
Expand Down

0 comments on commit 3af1e5f

Please sign in to comment.