From: Alyssa Ross Date: Fri, 12 Nov 2021 16:35:05 +0000 (+0000) Subject: cmd/dot: don't run dot -c when cross-compiling X-Git-Tag: 2.50.0~27^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8223242e00d24631d9446ae1c0d4bc06901ac519;p=graphviz cmd/dot: don't run dot -c when cross-compiling We probably can't execute the binary we've cross compiled. --- 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;)