V
V
Vladimir Grabko2016-07-19 18:26:22
go
Vladimir Grabko, 2016-07-19 18:26:22

How does cgo LDFLAGS work?

You need to implement this How to use din. libraries not from global space?
It's written in the docs

// #cgo LDFLAGS: -L${SRCDIR}/libs -lfoo
// #cgo LDFLAGS: -L/go/src/foo/libs -lfoo

but I still don't understand how it works. Can you explain?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question