# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../cvsgraph/cvsgraph-1.7.0-gd-ldflags.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---

Description: Use libgd LDFLAGS for linking

If libx11 and libxpm are installed in a non-standard path it won't be able
to link against those libraries without that patch.

--- cvsgraph-1.7.0/Makefile.in.orig	2011-05-10 11:31:47.648001980 +0200
+++ cvsgraph-1.7.0/Makefile.in	2011-05-10 11:33:17.384002079 +0200
@@ -54,7 +54,7 @@
 am_cvsgraph_OBJECTS = cvsgraph.$(OBJEXT) readconf.$(OBJEXT) \
 	utils.$(OBJEXT) rcsy.$(OBJEXT) rcsl.$(OBJEXT)
 cvsgraph_OBJECTS = $(am_cvsgraph_OBJECTS)
-cvsgraph_LDADD = $(LDADD)
+cvsgraph_LDADD = $(GD_LDFLAGS) $(LDADD)
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles