mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 12:30:34 -09:00
package/php: add option to enable libsodium support
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
30a32eb27e
commit
0d842d5ded
@@ -70,6 +70,12 @@ config BR2_PACKAGE_PHP_EXT_HASH
|
||||
help
|
||||
HASH message digest framework
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_LIBSODIUM
|
||||
bool "libsodium"
|
||||
select BR2_PACKAGE_LIBSODIUM
|
||||
help
|
||||
libsodium support
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_MCRYPT
|
||||
bool "mcrypt"
|
||||
select BR2_PACKAGE_LIBMCRYPT
|
||||
|
||||
@@ -122,6 +122,11 @@ PHP_CONF_OPTS += \
|
||||
$(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \
|
||||
$(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_LIBSODIUM),y)
|
||||
PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += libsodium
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y)
|
||||
PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += libmcrypt
|
||||
|
||||
Reference in New Issue
Block a user