summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/config.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index 2261db20f8..ca690cc15d 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -238,7 +238,6 @@ if test "$PHP_GD" = "php"; then
libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c"
PHP_NEW_EXTENSION(gd, gd.c gdt1.c $sources, $ext_shared,, \\$(GDLIB_CFLAGS))
- PHP_ADD_INCLUDE($ext_srcdir/libgd)
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
dnl PNG is required by GD library
@@ -268,7 +267,8 @@ dnl These are always available with bundled library
AC_DEFINE(HAVE_GD_BUNDLED, 1, [ ])
- GDLIB_CFLAGS="-DHAVE_LIBPNG"
+dnl Make sure the libgd/ is first in the include path
+ GDLIB_CFLAGS="-I$ext_srcdir/libgd -DHAVE_LIBPNG"
dnl Depending which libraries were included to PHP configure,
dnl enable the support in bundled GD library