Skip to content

Commit c81010e

Browse files
committed
Fix darwin make target
1 parent c1ae968 commit c81010e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ ifndef LITESTREAM_VERSION
2020
$(error LITESTREAM_VERSION is undefined)
2121
endif
2222
mkdir -p dist
23-
go build -v -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}'" -o dist/litestream ./cmd/litestream
23+
24+
GOOS=darwin GOARCH=amd64 CC="gcc -target amd64-apple-macos11" CGO_ENABLED=1 go build -v -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}'" -o dist/litestream ./cmd/litestream
2425
gon etc/gon.hcl
2526
mv dist/litestream.zip dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip
2627
openssl dgst -sha256 dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip

0 commit comments

Comments
 (0)