[Buildroot] [git commit] package/php: set MySQL socket path

From: Thomas Petazzoni <hidden>
Date: 2016-09-18 17:36:04
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=411cb66acdca6bf74db52e652788f61c6d978c01
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Set the PHP default MySQL socket path to match what the
mysql package is using.

Signed-off-by: Floris Bos <redacted>
Signed-off-by: Thomas Petazzoni <redacted>
---
 package/php/php.mk | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/package/php/php.mk b/package/php/php.mk
index 083b451..b1b19ad 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -211,6 +211,11 @@ PHP_DEPENDENCIES += unixodbc
 endif
 endif
 
+ifneq ($(BR2_PACKAGE_PHP_EXT_MYSQLI)$(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),)
+# Set default MySQL unix socket to what the MySQL server is using by default
+PHP_CONF_OPTS += --with-mysql-sock=$(MYSQL_SOCKET)
+endif
+
 define PHP_DISABLE_PCRE_JIT
 	$(SED) '/^#define SUPPORT_JIT/d' $(@D)/ext/pcre/pcrelib/config.h
 endef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help