|
From: Tatsuro M. <tma...@ya...> - 2008-12-23 07:55:20
|
Hello The current gd (gd-2.0.36RC1) has gdlib-config, which enable us to get information for configuration of the gd libraries and tools. Therefore it is better to use it for makefile,mgw. Perhaps similar modification can be made for makefile.cyg. Please consider a patch at the end of this mail. Regards Tatsuro ************* http://www.nabble.com/gd.trm-issue-for-mingw-gcc-4.3.0-building-to20755231.html - Tatsuro MATSUOKA-5 Dec 20, 2008; 04:19pm Hello After I have looked around the Gd libraries (gd-2.0.36RC1 build by mingw) in detail, I have found the 'gdlib-config' shell script. : : ******************* *** makefile.mgw.orig Sat Nov 29 06:10:28 2008 --- makefile.mgw Tue Dec 23 16:16:25 2008 *************** *** 208,219 **** CFLAGS += -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG ifdef JPEG CFLAGS += -DHAVE_GD_JPEG - TERMLIBS += -ljpeg endif ifdef FREETYPE CFLAGS += -DHAVE_GD_TTF - TERMLIBS += -lfreetype endif endif ifdef PDF --- 208,218 ---- CFLAGS += -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG ifdef JPEG CFLAGS += -DHAVE_GD_JPEG endif ifdef FREETYPE CFLAGS += -DHAVE_GD_TTF endif + TERMLIBS += $(shell gdlib-config --libs) endif ifdef PDF -------------------------------------- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ |