bfa0e6e7f7
Changelog: https://xdebug.org/updates#x_3_4_7 Since Buildroot commit [1] (package/php: bump version to 8.4.13) php-xdebug is failing to build with error: /buildroot/output/build/php-xdebug-3.3.1/src/coverage/code_coverage.c: In function ‘xdebug_find_jumps’: /buildroot/output/build/php-xdebug-3.3.1/src/coverage/code_coverage.c:349:34: error: ‘ZEND_EXIT’ undeclared (first use in this function); did you mean ‘ZEND_GINIT’? This commits fixes the issue. [1] https://gitlab.com/buildroot.org/buildroot/-/commit/a9e5cf6ac2cb7ba62d23c842899b3f7816eca14c Signed-off-by: Bernd Kuhls <bernd@kuhls.net> [Julien: add commit log info about build failure] Signed-off-by: Julien Olivain <ju.o@free.fr>
36 lines
1023 B
Makefile
36 lines
1023 B
Makefile
################################################################################
|
|
#
|
|
# php-xdebug
|
|
#
|
|
################################################################################
|
|
|
|
PHP_XDEBUG_VERSION = 3.4.7
|
|
PHP_XDEBUG_SOURCE = xdebug-$(PHP_XDEBUG_VERSION).tgz
|
|
PHP_XDEBUG_SITE = https://xdebug.org/files
|
|
PHP_XDEBUG_INSTALL_STAGING = YES
|
|
PHP_XDEBUG_LICENSE = Xdebug License (PHP-3.01-like)
|
|
PHP_XDEBUG_LICENSE_FILES = LICENSE
|
|
# phpize does the autoconf magic
|
|
PHP_XDEBUG_DEPENDENCIES = php host-autoconf
|
|
PHP_XDEBUG_CONF_OPTS = \
|
|
--enable-xdebug \
|
|
--with-php-config=$(STAGING_DIR)/usr/bin/php-config
|
|
|
|
define PHP_XDEBUG_PHPIZE
|
|
(cd $(@D); \
|
|
PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
|
|
PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
|
|
$(STAGING_DIR)/usr/bin/phpize)
|
|
endef
|
|
|
|
PHP_XDEBUG_PRE_CONFIGURE_HOOKS += PHP_XDEBUG_PHPIZE
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
PHP_XDEBUG_CONF_OPTS += --with-xdebug-compression
|
|
PHP_XDEBUG_DEPENDENCIES += zlib
|
|
else
|
|
PHP_XDEBUG_CONF_OPTS += --without-xdebug-compression
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|