Closed brauner closed 5 years ago
go build github.com/lxc/go-lxc: invalid flag in #cgo CFLAGS: -fvisibility=hidden
This appears to fail to build with Go 1.10, as that's our main target Go version, that's a bit of a problem and needs solving.
This appears to fail to build with Go 1.10, as that's our main target Go version, that's a bit of a problem and needs solving.
grrr I have pushed a possible solution
Now all Go versions are failing.
Now all Go versions are failing.
Think I found a fix now.
Use the same flags we require in LXD. Especially, hide all C functions to avoid symbol resolution clashes.
Signed-off-by: Christian Brauner christian.brauner@ubuntu.com