Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Add CGO_ENABLED to entrypoint #586

Merged
merged 2 commits into from
Oct 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ CGO_ENABLED?=0

.PHONY: bin
bin: # bin creates the binaries for Waypoint for the current platform
GOOS=linux GOARCH=amd64 go build -o ./internal/assets/ceb/ceb ./cmd/waypoint-entrypoint
CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=amd64 go build -o ./internal/assets/ceb/ceb ./cmd/waypoint-entrypoint
cd internal/assets && go-bindata -pkg assets -o prod.go -tags assetsembedded ./ceb
CGO_ENABLED=$(CGO_ENABLED) go build -ldflags $(GOLDFLAGS) -tags assetsembedded -o ./waypoint ./cmd/waypoint
go build -tags assetsembedded -o ./waypoint-entrypoint ./cmd/waypoint-entrypoint
CGO_ENABLED=$(CGO_ENABLED) go build -tags assetsembedded -o ./waypoint-entrypoint ./cmd/waypoint-entrypoint

.PHONY: bin/windows
bin/windows: # create windows binaries
Expand Down