Skip to content

Commit

Permalink
Merge pull request #1231 from dfr/freebsd-cross
Browse files Browse the repository at this point in the history
Add freebsd to the local-cross build target
  • Loading branch information
rhatdan committed May 8, 2022
2 parents 7d26a10 + 9b5fa24 commit 0dcdf49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ binary local-binary: containers-storage
local-gccgo: ## build using gccgo on the host
GCCGO=$(PWD)/hack/gccgo-wrapper.sh $(GO) build $(MOD_VENDOR) -compiler gccgo $(BUILDFLAGS) -o containers-storage.gccgo ./cmd/containers-storage

local-cross: ## cross build the binaries for arm, darwin, and\nfreebsd
@for target in linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64 linux/ppc64le darwin/amd64 windows/amd64 ; do \
local-cross: ## cross build the binaries for arm, darwin, and freebsd
@for target in linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64 linux/ppc64le darwin/amd64 windows/amd64 freebsd/amd64 freebsd/arm64 ; do \
os=`echo $${target} | cut -f1 -d/` ; \
arch=`echo $${target} | cut -f2 -d/` ; \
suffix=$${os}.$${arch} ; \
Expand Down
3 changes: 3 additions & 0 deletions pkg/mount/mounter_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build freebsd && cgo
// +build freebsd,cgo

package mount

/*
Expand Down
4 changes: 3 additions & 1 deletion pkg/mount/mounter_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// +build !linux,!freebsd
//go:build !linux && !(freebsd && cgo)
// +build !linux
// +build !freebsd !cgo

package mount

Expand Down

0 comments on commit 0dcdf49

Please sign in to comment.