]> granicus.if.org Git - graphviz/commitdiff
cmd/dot: autotools: cd to bin dir before running dot -c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 11 Sep 2021 10:30:06 +0000 (12:30 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 16:17:16 +0000 (18:17 +0200)
Fixes this error with Cygwin:

C:/GitLab-Runner/builds/magjac/graphviz/build/bin/dot.exe: error while loading shared libraries: cygcgraph-6.dll: cannot open shared object file: No such file or directory

cmd/dot/Makefile.am

index 6dab3a704b218fae993092c8345e4b58504dab69..c507a4b4d52134789ea0c824966007e365db3d09 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; $(bindir)/dot$(EXEEXT) -c; else $(bindir)/dot_static$(EXEEXT) -c; fi; 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
 
 uninstall-hook:
        (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)