summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/config.w322
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/config.w32 b/ext/gd/config.w32
index f0e0b2296a..2779a5b32d 100644
--- a/ext/gd/config.w32
+++ b/ext/gd/config.w32
@@ -23,7 +23,7 @@ if (PHP_GD != "no") {
) {
if (PHP_LIBWEBP != "no") {
- if (CHECK_LIB("libwebp.lib", "gd", PHP_GD) &&
+ if ((CHECK_LIB("libwebp_a.lib", "gd", PHP_GD) || CHECK_LIB("libwebp.lib", "gd", PHP_GD)) &&
CHECK_HEADER_ADD_INCLUDE("decode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp") &&
CHECK_HEADER_ADD_INCLUDE("encode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp")) {
ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBWEBP /D HAVE_GD_WEBP");