$OpenBSD: patch-cmd_dot_Makefile_in,v 1.3 2014/02/06 17:32:27 edd Exp $

Add pthread linkage or '@exec dot -c' will fail with "file not found"
when trying to dlopen(). Not because the file is missing, but because
there is a linker error. Sigh, obvious isn't it?

--- cmd/dot/Makefile.in.orig2	Sun Feb  2 23:23:31 2014
+++ cmd/dot/Makefile.in	Sun Feb  2 23:24:22 2014
@@ -615,7 +615,8 @@ dot_SOURCES = dot.c no_builtins.c
 dot_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
 dot_LDADD = \
 	$(top_builddir)/lib/gvc/libgvc.la \
-	$(top_builddir)/lib/cgraph/libcgraph.la
+	$(top_builddir)/lib/cgraph/libcgraph.la \
+	-pthread
 
 dot_static_SOURCES = dot.c dot_builtins.c
 dot_static_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=0
