summaryrefslogtreecommitdiffstats
path: root/package/php/php.mk
diff options
context:
space:
mode:
authorFloris Bos <bos@je-eigen-domein.nl>2016-08-23 18:54:48 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-09-06 23:21:50 +0200
commitea1e9e03442a5b375aa2214ba92e48ebba89070a (patch)
treead5950a2cd714d1421dbc4aae26f4137349af90d /package/php/php.mk
parent86dc25e2b6b19967363a04f38894154c69f4f245 (diff)
downloadbuildroot-ea1e9e03442a5b375aa2214ba92e48ebba89070a.tar.gz
buildroot-ea1e9e03442a5b375aa2214ba92e48ebba89070a.zip
package/php: switch from libmysqlclient to mysqlnd
The Mysql Native Driver has been the default mysql driver since PHP 5.4, but buildroot was still using libmysqlclient. Mysqlnd has several advantages such as improved memory management and the more favorable PHP licensing terms. (can combine it with proprietary PHP extensions like Ioncube loader, while libmysqlclient requires commercial licensing if you link to it and do not fall under their GPL/FOSS license exception) Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/php/php.mk')
-rw-r--r--package/php/php.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/php/php.mk b/package/php/php.mk
index d7e27a13dc..deaf56ef4f 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -181,8 +181,7 @@ endif
### Native SQL extensions
ifeq ($(BR2_PACKAGE_PHP_EXT_MYSQLI),y)
-PHP_CONF_OPTS += --with-mysqli=$(STAGING_DIR)/usr/bin/mysql_config
-PHP_DEPENDENCIES += mysql
+PHP_CONF_OPTS += --with-mysqli
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
@@ -199,8 +198,7 @@ PHP_DEPENDENCIES += sqlite
PHP_CFLAGS += -DSQLITE_OMIT_LOAD_EXTENSION
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),y)
-PHP_CONF_OPTS += --with-pdo-mysql=$(STAGING_DIR)/usr
-PHP_DEPENDENCIES += mysql
+PHP_CONF_OPTS += --with-pdo-mysql
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr
OpenPOWER on IntegriCloud