Short of it is in the title... I'm trying to have the headerfile that cgo already creates cgo_export.h
- but sticks in the working directory - created in a static location that I can reliably access (as working directories can and should change). Directly using cgo
provides for a -headerfile
option, but I see no such option within the build options of go build
, nor a way of passing options to cgo
from go build
.
Besides using a second run of cgo
(or some script to grab the header each time from the working directory) is there any way to produce the header file with go build