From cba5f4561188df3b96fa5d6d7b5fb886971087b2 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 11 Sep 2021 12:30:06 +0200 Subject: [PATCH] cmd/dot: autotools: cd to bin dir before running dot -c 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dot/Makefile.am b/cmd/dot/Makefile.am index 6dab3a704..c507a4b4d 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; $(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;) -- 2.40.0