Skip to content

Commit bc915e3

Browse files
author
bulldozer-balena[bot]
authored
Merge pull request #9 from balena-os/alexgg/cgo
Makefile: Remove disabling cgo
2 parents 80e4f90 + e3cfd8c commit bc915e3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FROM --platform=${BUILDPLATFORM} docker.io/tonistiigi/xx:golang AS xx
44
FROM --platform=${BUILDPLATFORM} golang:alpine AS gobuild
55

6-
RUN apk add make
6+
RUN apk add make gcc libc-dev
77

88
WORKDIR /src
99

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ DOCKER_BUILDTAGS ?= no_btrfs no_cri no_zfs exclude_disk_quota exclude_graphdrive
66
GO_BUILDTAGS ?= netgo osusergo static_build $(DOCKER_BUILDTAGS)
77

88
mobynit:
9-
CGO_ENABLED=0 \
109
$(GO) build -o $(DEST)/$@ \
1110
-ldflags "$(GO_LDFLAGS)" \
1211
-tags "$(GO_BUILDTAGS)" \
1312
./cmd/mobynit
1413

1514
hostapp.test:
16-
CGO_ENABLED=0 \
1715
$(GO) test -c -o $(DEST)/$@ \
1816
-ldflags "$(GO_LDFLAGS)" \
1917
-tags "$(GO_BUILDTAGS)"

0 commit comments

Comments
 (0)