Skip to content

Commit bf1ecbf

Browse files
committed
fix libwebp namings
1 parent d44fc4a commit bf1ecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/config.w32

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (PHP_GD != "no") {
2323
) {
2424

2525
if (PHP_LIBWEBP != "no") {
26-
if (CHECK_LIB("libwebp.lib", "gd", PHP_GD) &&
26+
if ((CHECK_LIB("libwebp_a.lib", "gd", PHP_GD) || CHECK_LIB("libwebp.lib", "gd", PHP_GD)) &&
2727
CHECK_HEADER_ADD_INCLUDE("decode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp") &&
2828
CHECK_HEADER_ADD_INCLUDE("encode.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\webp")) {
2929
ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBWEBP /D HAVE_GD_WEBP");

0 commit comments

Comments
 (0)