Passing CFLAGS and LDFLAGS to cgo

Posted on Sun 12 July 2015 in misc • Tagged with go, openbsd

I was trying to build which wraps the C libshout library with Go.  On Linux this worked fine, but on OpenBSD this was a bit more of a challenge as cgo could not find libshout.  (install libshout with pkg_add first)

Although -lshout is specified as …

Continue reading