#!/bin/bash -x
PWD=`pwd`
export CGO_LDFLAGS="-L$PWD"
cd sample
go build
./sample
cd ..

#!/bin/bash -x
PWD=`pwd`
export CGO_LDFLAGS="-L$PWD"
export CGO_CFLAGS="-I$PWD"
cd sample
go build
./sample
cd ..

Fix the include path to build with cgo
Fix the include path to build with cgo
