  	-I$(top_srcdir)/lib/edgepaint \
 diff -ruN graphviz-2.38.0/cmd/edgepaint/Makefile.in graphviz-2.38.0-new/cmd/edgepaint/Makefile.in
 --- graphviz-2.38.0/cmd/edgepaint/Makefile.in	2014-04-13 14:41:51.000000000 -0600
-+++ graphviz-2.38.0-new/cmd/edgepaint/Makefile.in	2015-04-18 12:10:10.000000000 -0600
++++ graphviz-2.38.0-new/cmd/edgepaint/Makefile.in	2015-04-26 05:17:08.076647789 -0600
 @@ -521,6 +521,7 @@
  top_srcdir = @top_srcdir@
  AM_CPPFLAGS = \

 	-I$(top_srcdir)/lib/sparse \
 	-I$(top_srcdir)/lib/sfdpgen \
 	-I$(top_srcdir)/lib/edgepaint \
diff -ruN graphviz-2.38.0/configure graphviz-2.38.0-new/configure
--- graphviz-2.38.0/configure	2014-04-13 14:41:48.000000000 -0600
+++ graphviz-2.38.0-new/configure	2015-04-18 12:09:35.000000000 -0600
@@ -27463,6 +27463,7 @@
       if test -n "$GDLIB_CONFIG"; then
         GD_INCLUDES=`$GDLIB_CONFIG --includes`
         GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=^ * //'`
+        GD_LDFLAGS="$GD_LDFLAGS -L`$GDLIB_CONFIG --libdir`"
         GD_LIBS=`$GDLIB_CONFIG --libs`
         GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion`
         GD_MINORVERSION=`$GDLIB_CONFIG --minorversion`
diff -ruN graphviz-2.38.0/configure.ac graphviz-2.38.0-new/configure.ac
--- graphviz-2.38.0/configure.ac	2014-04-13 14:40:25.000000000 -0600
+++ graphviz-2.38.0-new/configure.ac	2015-04-18 12:09:38.000000000 -0600
@@ -2710,6 +2710,7 @@
       if test -n "$GDLIB_CONFIG"; then
         GD_INCLUDES=`$GDLIB_CONFIG --includes`
         GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=[^ ]* //'`
+        GD_LDFLAGS="$GD_LDFLAGS -L`$GDLIB_CONFIG --libdir`"
         GD_LIBS=`$GDLIB_CONFIG --libs`
         GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion`
         GD_MINORVERSION=`$GDLIB_CONFIG --minorversion`

diff -ruN graphviz-2.38.0/cmd/edgepaint/Makefile.am graphviz-2.38.0-new/cmd/edgepaint/Makefile.am
--- graphviz-2.38.0/cmd/edgepaint/Makefile.am	2014-04-13 14:40:25.000000000 -0600
+++ graphviz-2.38.0-new/cmd/edgepaint/Makefile.am	2015-04-26 05:17:08.075647812 -0600
@@ -5,6 +5,7 @@
 
 AM_CPPFLAGS = \
