diff -ru gd-2.0.35/Makefile.in gd-2.0.35.patched/Makefile.in
--- gd-2.0.35/Makefile.in	Mon Apr 23 22:57:51 2007
+++ gd-2.0.35.patched/Makefile.in	Mon May 12 23:13:51 2008
@@ -345,7 +345,7 @@
 include_HEADERS = gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h
 lib_LTLIBRARIES = libgd.la
 libgd_la_SOURCES = gd.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_gif_in.c gd_gif_out.c gd_io_file.c gd_io_ss.c gd_jpeg.c gd_png.c gd_ss.c gd_topal.c gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c gdft.c gdhelpers.c gdhelpers.h gdkanji.c gdtables.c gdxpm.c jisx0208.h wbmp.c wbmp.h
-libgd_la_LDFLAGS = -version-info 2:0:0 $(XTRA_LDFLAGS)
+libgd_la_LDFLAGS = -version-info 2:0:0 $(XTRA_LDFLAGS) -no-undefined
 libgd_la_LIBADD = $(LTLIBICONV)
 LDADD = ./libgd.la $(LIBICONV)
 all: config.h
