From: Edin Kadribasic Date: Sat, 6 Aug 2005 22:20:06 +0000 (+0000) Subject: Only link zlib if we dont compile it in (#3406) X-Git-Tag: RELEASE_2_0_0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e5ddd7b30d47694523c632a5e37eab95bbf60d9;p=php Only link zlib if we dont compile it in (#3406) --- diff --git a/ext/gd/config.w32 b/ext/gd/config.w32 index 4b2a5c7a4e..4f82943ff5 100644 --- a/ext/gd/config.w32 +++ b/ext/gd/config.w32 @@ -8,7 +8,6 @@ if (PHP_GD != "no") { if (CHECK_LIB("libjpeg.lib", "gd", PHP_GD) && CHECK_LIB("freetype2.lib", "gd", PHP_GD) && CHECK_LIB("libpng.lib", "gd", PHP_GD) && - CHECK_LIB("zlib.lib", "gd", PHP_GD + ";..\\zlib;" + php_usual_lib_suspects) && CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd") ) { if (PHP_T1LIB != "no") { @@ -21,6 +20,10 @@ if (PHP_GD != "no") { } } + if (PHP_ZLIB == "no" || PHP_ZLIB_SHARED) { + CHECK_LIB("zlib.lib", "gd", PHP_GD); + } + EXTENSION("gd", "gd.c gdttf.c", null, "-Iext/gd/libgd", "php_gd2.dll"); ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd_arc_f_buggy.c gd.c \ gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c \