golang: Fix build when libguestfs is not already installed.

See similar fix in libnbd:
031aaefaa8

Fixes: commit 95de3f6c50
This commit is contained in:
Richard W.M. Jones
2021-04-09 14:24:52 +01:00
parent 536b5ed993
commit afe7e16c0f

View File

@@ -41,7 +41,8 @@ if HAVE_GOLANG
all-local: $(source_files)
-[ $(srcdir) != $(builddir) ] && ln -s $(abs_srcdir)/src $(builddir)/src
cd src/$(pkg) && $(GOLANG) build
cd src/$(pkg) && \
$(abs_top_builddir)/run $(GOLANG) build
TESTS_ENVIRONMENT = pkg=$(pkg) $(top_builddir)/run $(VG) # --test