Skip to content

Commit

Permalink
fix 32-bit ARM v6 (GOARM=6 was not being propagated)
Browse files Browse the repository at this point in the history
used incorrect syntax in shell 🤦
  • Loading branch information
joonas-fi authored Feb 4, 2024
1 parent 29ea131 commit 7faee8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-go-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ gobuildmaybe() {
# - using v6 to be compatible with Raspberry Pi Zero W (& by extension, the original Pi)

# compile statically so this works on Alpine Linux that doesn't have glibc
(cd "$dir_in_which_to_compile" && GOARM=6 && GOOS="$os" GOARCH="$architecture" CGO_ENABLED=0 go build \
(cd "$dir_in_which_to_compile" && GOARM=6 GOOS="$os" GOARCH="$architecture" CGO_ENABLED=0 go build \
-ldflags "-extldflags \"-static\" -X github.com/function61/gokit/app/dynversion.Version=$FRIENDLY_REV_ID" \
-o "$projectroot/rel/${BINARY_NAME}${binSuffix}")
}
Expand Down

0 comments on commit 7faee8f

Please sign in to comment.