Is there a way to pass include path dynamically to cgo? 

I'm working with numpy and the way to find the include directory is to call 
(in Python) 
numpy.get_include()

In a Makefile I can run go build with 
CGO_CFLAGS=-I $(shell python -c 'import numpy; print(numpy.get_include())') 
go build 

but I don't know how to do it as a 
#cgo CFLAGS:
directive and I'd like to have the module go gettable

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3ce0a428-be9a-4dc8-947e-159bdbb2a598o%40googlegroups.com.

Reply via email to