|
@@ -209,6 +209,10 @@ PHP_DEPENDENCIES += unixodbc
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+define PHP_DISABLE_PCRE_JIT
|
|
|
|
+ $(SED) '/^#define SUPPORT_JIT/d' $(@D)/ext/pcre/pcrelib/config.h
|
|
|
|
+endef
|
|
|
|
+
|
|
### Use external PCRE if it's available
|
|
### Use external PCRE if it's available
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
PHP_CONF_OPTS += --with-pcre-regex=$(STAGING_DIR)/usr
|
|
PHP_CONF_OPTS += --with-pcre-regex=$(STAGING_DIR)/usr
|
|
@@ -220,6 +224,10 @@ else
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
PHP_CFLAGS += -DSLJIT_SINGLE_THREADED=1
|
|
PHP_CFLAGS += -DSLJIT_SINGLE_THREADED=1
|
|
endif
|
|
endif
|
|
|
|
+# check ext/pcre/pcrelib/sljit/sljitConfigInternal.h for supported archs
|
|
|
|
+ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb)$(BR2_aarch64)$(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el)$(BR2_powerpc)$(BR2_sparc),)
|
|
|
|
+PHP_POST_CONFIGURE_HOOKS += PHP_DISABLE_PCRE_JIT
|
|
|
|
+endif
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_CURL),y)
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_CURL),y)
|