Closed mattkasun closed 1 year ago
I'm not sure there is anything to do here: cross-compiling with cgo is nontrivial.
✘-INT ~/src/wgctrl-go [master|✔]
21:40 $ GOOS=freebsd go build
# golang.zx2c4.com/wireguard/wgctrl
./os_freebsd.go:18:27: undefined: wgfreebsd.New
✘-2 ~/src/wgctrl-go [master|✔]
21:40 $ CGO_ENABLED=1 GOOS=freebsd go build
# runtime/cgo
gcc_freebsd_amd64.c:7:10: fatal error: sys/signalvar.h: No such file or directory
7 | #include <sys/signalvar.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
You can try setting up a C cross compiling toolchain but there is no pure Go implementation for the FreeBSD kernel as of now.
compiles and works on freebsd but compiling on linux