Closed mattdesmarais closed 1 year ago
One thing I have here for such setup is C_INCLUDE_PATH
and LIBRARY_PATH
as env
for this build, like:
- id: linux-amd64
main: ./core/main.go
binary: core-linux
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- C_INCLUDE_PATH=/usr/x86_64-linux-gnu/include
- LIBRARY_PATH=/usr/x86_64-linux-gnu/lib
ldflags:
- -s -w -X main.version={{.Version}}
@mattdesmarais have you tried updating env
with CFLAGS: "-I/usr/x86_64-linux-gnu/include"
going to close this for now, @mattdesmarais feel free to reopen if issue is still the case
Hello, i'm trying to run
goreleaser-cross:v1.20.5
to build a linux amd64 binary withCGO_ENABLED=1
on my Macbook and it consistnelty fails with - I'm out of ideas.