golang: Fix path to include/guestfs.h.

Thanks: Martin Kletzander
Fixes: commit 75abec1f70
This commit is contained in:
Richard W.M. Jones
2020-10-06 15:25:32 +01:00
parent dbfab7d3b2
commit bfd0886765

4
run.in
View File

@@ -181,9 +181,9 @@ export GOLANG="@GOLANG@"
prepend GOPATH "$b/golang"
export GOPATH
if [ -z "$CGO_CFLAGS" ]; then
CGO_CFLAGS="-I$s/lib"
CGO_CFLAGS="-I$s/include"
else
CGO_CFLAGS="$CGO_CFLAGS -I$s/lib"
CGO_CFLAGS="$CGO_CFLAGS -I$s/include"
fi
export CGO_CFLAGS
if [ -z "$CGO_CFLAGS_ALLOW" ]; then