golang: Try to deal with srcdir != builddir builds.

Updates: commit 95de3f6c50
Thanks: Gianfranco Costamagna
This commit is contained in:
Richard W.M. Jones
2021-04-09 11:05:17 +01:00
parent 93c2d09136
commit c8cab6219f

View File

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