Skip to content

Commit

Permalink
fix: fix arm64 build shell
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhai committed Sep 16, 2022
1 parent 9dab5c4 commit 2645ea3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,13 @@ windows:

.PHONY: arm32
arm32:
CC=arm-linux-gnueabi-gcc
GOARM=7
GOARCH=arm
GOOS=linux
CGO_ENABLED=1
go build -o ${APP} -ldflags "-s -w -linkmode external -extldflags -static"
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc\
go build -ldflags "-s -w -linkmode external -extldflags -static"

.PHONY: arm64
arm64:
CC=arm-linux-gnueabi-gcc
GOARCH=arm64
GOOS=linux
CGO_ENABLED=1
go build -o ${APP} -ldflags "-s -w"
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc
go build -ldflags "-s -w -linkmode external -extldflags -static"

.PHONY: run
run:
Expand Down

0 comments on commit 2645ea3

Please sign in to comment.