Skip to content

Commit c559d4f

Browse files
committed
- always add libgd/
1 parent d8b76a8 commit c559d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/gd/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,10 @@ dnl
401401
if test "$PHP_GD" != "no"; then
402402
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS))
403403

404+
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
405+
404406
if test "$GD_MODULE_TYPE" = "builtin"; then
405407
GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
406-
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
407408
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
408409

409410
PHP_TEST_BUILD(foobar, [], [
@@ -413,7 +414,6 @@ if test "$PHP_GD" != "no"; then
413414
GD_HEADER_DIRS="ext/gd/"
414415
GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
415416
PHP_ADD_INCLUDE($GD_INCLUDE)
416-
417417
PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
418418
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
419419
], [ -L$GD_LIB $GD_SHARED_LIBADD ])

0 commit comments

Comments
 (0)