From: Tom Marcuzzi Date: Tue, 28 Jul 2020 16:31:25 +0000 (+0200) Subject: package/php: add FFI extension support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e16f05c0f00081d446ebee56d9f3ad3cf41da1ae;p=buildroot.git package/php: add FFI extension support Signed-off-by: Tom Marcuzzi Signed-off-by: Thomas Petazzoni --- diff --git a/package/php/Config.ext b/package/php/Config.ext index b0ab2c9ec7..b628291f78 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -427,4 +427,14 @@ config BR2_PACKAGE_PHP_EXT_XSL help XSL transformation support +config BR2_PACKAGE_PHP_EXT_FFI + bool "FFI" + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_LIBFFI + help + Foreign Function Interface support + +comment "PHP FFI extension needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + endmenu diff --git a/package/php/php.mk b/package/php/php.mk index 48af0f6fdc..1296c50c6d 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -333,6 +333,11 @@ PHP_CONF_OPTS += \ PHP_DEPENDENCIES += jpeg libpng freetype zlib endif +ifeq ($(BR2_PACKAGE_PHP_EXT_FFI),y) +PHP_CONF_OPTS += --with-ffi +PHP_DEPENDENCIES += libffi +endif + ifeq ($(BR2_PACKAGE_PHP_SAPI_FPM),y) define PHP_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 $(@D)/sapi/fpm/init.d.php-fpm \