From 8223242e00d24631d9446ae1c0d4bc06901ac519 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 12 Nov 2021 16:35:05 +0000 Subject: [PATCH] cmd/dot: don't run dot -c when cross-compiling We probably can't execute the binary we've cross compiled. --- cmd/dot/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dot/Makefile.am b/cmd/dot/Makefile.am index c507a4b4d..e4cf04fe7 100644 --- a/cmd/dot/Makefile.am +++ b/cmd/dot/Makefile.am @@ -76,7 +76,7 @@ install-data-hook: # run "dot -c", if possible, to create plugin config install-exec-hook: (cd $(DESTDIR)$(bindir); if test -x dot$(EXEEXT); then for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot$(EXEEXT) $$i; done; fi;) - if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot$(EXEEXT); then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; cd $(bindir); ./dot$(EXEEXT) -c; else cd $(bindir); ./dot_static$(EXEEXT) -c; fi; fi + if test "x$(DESTDIR)" = "x" -a "x$(build)" = "x$(host)"; then if test -x $(bindir)/dot$(EXEEXT); then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; cd $(bindir); ./dot$(EXEEXT) -c; else cd $(bindir); ./dot_static$(EXEEXT) -c; fi; fi uninstall-hook: (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;) -- 2.40.0