1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Fix gd extension -I flag for bundled libgd (#15786)

The ext_srcdir variable is at time of writing set only after calling the
PHP_NEW_EXTENSION. Other extensions also use @ext_srcdir@ template
placeholder for these cases. This fixes wrongly set include flag even
though build also works without libgd include flag.
This commit is contained in:
Peter Kokot
2024-09-07 09:46:06 +02:00
committed by GitHub
parent 4a4574290f
commit 5ea6b044cd

View File

@@ -279,8 +279,10 @@ dnl Various checks for GD features
PHP_GD_FREETYPE2
PHP_GD_JISX0208
GD_CFLAGS="-Wno-strict-prototypes -I$ext_srcdir/libgd $GD_CFLAGS"
PHP_NEW_EXTENSION([gd], [gd.c $extra_sources], [$ext_shared],, [$GD_CFLAGS])
PHP_NEW_EXTENSION([gd],
[gd.c $extra_sources],
[$ext_shared],,
[-Wno-strict-prototypes -I@ext_srcdir@/libgd])
PHP_ADD_BUILD_DIR([$ext_builddir/libgd])
PHP_INSTALL_HEADERS([ext/gd], [php_gd.h libgd/])