Skip to content

Commit

Permalink
Update makefile to support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thxCode committed Sep 11, 2018
1 parent cc999cf commit bda9bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dist/flanneld: $(shell find . -type f -name '*.go')
-ldflags '-s -w -X github.com/coreos/flannel/version.Version=$(TAG) -extldflags "-static"'

dist/flanneld.exe: $(shell find . -type f -name '*.go')
GOOS=windows go build -o dist/flanneld.exe \
CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows go build -o dist/flanneld.exe \
-ldflags '-s -w -X github.com/coreos/flannel/version.Version=$(TAG) -extldflags "-static"'

# This will build flannel natively using golang image
Expand Down

0 comments on commit bda9bea

Please sign in to comment.