|
@@ -4,8 +4,8 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-PHP_VERSION = 7.4.20
|
|
|
|
-PHP_SITE = http://www.php.net/distributions
|
|
|
|
|
|
+PHP_VERSION = 8.0.7
|
|
|
|
+PHP_SITE = https://www.php.net/distributions
|
|
PHP_SOURCE = php-$(PHP_VERSION).tar.xz
|
|
PHP_SOURCE = php-$(PHP_VERSION).tar.xz
|
|
PHP_INSTALL_STAGING = YES
|
|
PHP_INSTALL_STAGING = YES
|
|
PHP_INSTALL_STAGING_OPTS = INSTALL_ROOT=$(STAGING_DIR) install
|
|
PHP_INSTALL_STAGING_OPTS = INSTALL_ROOT=$(STAGING_DIR) install
|
|
@@ -62,7 +62,7 @@ PHP_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
# The OPcache extension isn't cross-compile friendly
|
|
# The OPcache extension isn't cross-compile friendly
|
|
# Throw some defines here to avoid patching heavily
|
|
# Throw some defines here to avoid patching heavily
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_OPCACHE),y)
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_OPCACHE),y)
|
|
-PHP_CONF_OPTS += --enable-opcache
|
|
|
|
|
|
+PHP_CONF_OPTS += --enable-opcache --disable-opcache-jit
|
|
PHP_CONF_ENV += ac_cv_func_mprotect=yes
|
|
PHP_CONF_ENV += ac_cv_func_mprotect=yes
|
|
PHP_CFLAGS += \
|
|
PHP_CFLAGS += \
|
|
-DHAVE_SHM_IPC \
|
|
-DHAVE_SHM_IPC \
|
|
@@ -90,7 +90,7 @@ PHP_CONF_OPTS += --with-apxs2=$(STAGING_DIR)/usr/bin/apxs
|
|
|
|
|
|
# Enable thread safety option if Apache MPM is event or worker
|
|
# Enable thread safety option if Apache MPM is event or worker
|
|
ifeq ($(BR2_PACKAGE_APACHE_MPM_EVENT)$(BR2_PACKAGE_APACHE_MPM_WORKER),y)
|
|
ifeq ($(BR2_PACKAGE_APACHE_MPM_EVENT)$(BR2_PACKAGE_APACHE_MPM_WORKER),y)
|
|
-PHP_CONF_OPTS += --enable-maintainer-zts
|
|
|
|
|
|
+PHP_CONF_OPTS += --enable-zts
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|
|
@@ -107,7 +107,6 @@ PHP_CONF_OPTS += \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_XMLWRITER),--enable-xmlwriter) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_XMLWRITER),--enable-xmlwriter) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_EXIF),--enable-exif) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_EXIF),--enable-exif) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_FTP),--enable-ftp) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_FTP),--enable-ftp) \
|
|
- $(if $(BR2_PACKAGE_PHP_EXT_JSON),--enable-json) \
|
|
|
|
$(if $(BR2_PACKAGE_PHP_EXT_TOKENIZER),--enable-tokenizer) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_TOKENIZER),--enable-tokenizer) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_PCNTL),--enable-pcntl) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_PCNTL),--enable-pcntl) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_SHMOP),--enable-shmop) \
|
|
$(if $(BR2_PACKAGE_PHP_EXT_SHMOP),--enable-shmop) \
|
|
@@ -161,13 +160,6 @@ PHP_CONF_OPTS += --enable-wddx --with-libexpat-dir=$(STAGING_DIR)/usr
|
|
PHP_DEPENDENCIES += expat
|
|
PHP_DEPENDENCIES += expat
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_PHP_EXT_XMLRPC),y)
|
|
|
|
-PHP_CONF_OPTS += \
|
|
|
|
- --with-xmlrpc \
|
|
|
|
- $(if $(BR2_PACKAGE_LIBICONV),--with-iconv-dir=$(STAGING_DIR)/usr)
|
|
|
|
-PHP_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_ZIP),y)
|
|
ifeq ($(BR2_PACKAGE_PHP_EXT_ZIP),y)
|
|
PHP_DEPENDENCIES += libzip
|
|
PHP_DEPENDENCIES += libzip
|
|
endif
|
|
endif
|