My cgo code needs to call a third-party C library, whose location might vary. I'd like to take a linux environment variable to specify where it is, as below:// #cgo linux CFLAGS: ${THE_SDK_HOME}/includeUnfortunately, go failed to compile above code.
Does anybody know how to resolve this issue? or I have to use pkg-config?