Thanks for the reply.
Is there any automatic way to build a dynamic library that cgo-package depends on?
I have the following line in sources of my cgo package(I have the dynamic library libcl3go.so in cwrap folder):
// #cgo LDFLAGS: -Lcwrap/ -lcl3go
When I use `go get <my cgo package>` or `go build <external package that uses the cgo package>` I have got some gotools errors referring the fact that cgo package is downloaded but not built because of `make` hasn't been run and the dynamic library hasn't appeared in cwrap folder.
Maybe there is no point of using separate cgo packages depending on dynamic libraries and I should just include it inside my main package with fully controlled build mechanisms?
понеділок, 6 травня 2019 р. 23:44:09 UTC+3 користувач Ian Lance Taylor написав: