]> granicus.if.org Git - graphviz/commitdiff
cmd/dot: don't run dot -c when cross-compiling
authorAlyssa Ross <hi@alyssa.is>
Fri, 12 Nov 2021 16:35:05 +0000 (16:35 +0000)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 19 Nov 2021 00:59:35 +0000 (16:59 -0800)
We probably can't execute the binary we've cross compiled.

cmd/dot/Makefile.am

index c507a4b4d52134789ea0c824966007e365db3d09..e4cf04fe70db702a9ba262780689290c328628c1 100644 (file)
@@ -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;)