mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00: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:
parent
4a4574290f
commit
5ea6b044cd
@ -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/])
|
||||
|
Loading…
Reference in New Issue
Block a user