]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
php: disable valgrind
authorAdam Duskett <aduskett@gmail.com>
Mon, 12 Feb 2018 17:01:12 +0000 (12:01 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 13 Feb 2018 21:38:18 +0000 (22:38 +0100)
Introduced in PHP7.2, if a host has valgrind headers installed, PHP will detect
them and set HAVE_VALGRIND to 1.
Disable this entry after configuring.

fixes:
http://autobuild.buildroot.net/results/d59/d59b5961890aeddcd6d59ed52243be6554d1fe21

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/php/php.mk

index a4481c45c76d51a14e416feb1b21d47cffd55ec0..e6bc1e47e1d571f36f843db61ac4880e2084bf29 100644 (file)
@@ -232,6 +232,11 @@ define PHP_DISABLE_PCRE_JIT
        $(SED) '/^#define SUPPORT_JIT/d' $(@D)/ext/pcre/pcrelib/config.h
 endef
 
+define PHP_DISABLE_VALGRIND
+       $(SED) '/^#define HAVE_VALGRIND/d' $(@D)/main/php_config.h
+endef
+PHP_POST_CONFIGURE_HOOKS += PHP_DISABLE_VALGRIND
+
 ### Use external PCRE if it's available
 ifeq ($(BR2_PACKAGE_PCRE),y)
 PHP_CONF_OPTS += --with-pcre-regex=$(STAGING_DIR)/usr