aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/mysql/mysql.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk
index 808abcea45..21435f5a7c 100644
--- a/package/mysql/mysql.mk
+++ b/package/mysql/mysql.mk
@@ -50,6 +50,7 @@ HOST_MYSQL_CONF_OPT = \
--disable-mysql-maintainer-mode
MYSQL_CONF_OPT += \
+ --localstatedir=/var/mysql \
--disable-dependency-tracking \
--with-atomic-ops=up \
--with-embedded-server \
@@ -88,6 +89,12 @@ define HOST_MYSQL_INSTALL_CMDS
$(INSTALL) -m 0755 $(@D)/sql/gen_lex_hash $(HOST_DIR)/usr/bin/
endef
+define MYSQL_ADD_FOLDER
+ $(INSTALL) -d $(TARGET_DIR)/var/mysql
+endef
+
+MYSQL_POST_INSTALL_TARGET_HOOKS += MYSQL_ADD_FOLDER
+
else
MYSQL_CONF_OPT += \
--without-server