diff --git a/package/mariadb/mariadb.mk b/package/mariadb/mariadb.mk index a743d020c0..a9cd9c9516 100644 --- a/package/mariadb/mariadb.mk +++ b/package/mariadb/mariadb.mk @@ -18,12 +18,16 @@ MARIADB_CONFIG_SCRIPTS = mysql_config MARIADB_DEPENDENCIES = \ host-mariadb \ + fmt \ ncurses \ openssl \ zlib \ libaio \ libxml2 +MARIADB_CONF_OPTS += \ + -DWITH_FMT=system + # use bundled GPL-2.0+ licensed readline as package/readline is GPL-3.0+ MARIADB_CONF_OPTS += -DWITH_READLINE=ON diff --git a/package/mysql/Config.in b/package/mysql/Config.in index ef4a9531a7..8212d0fd3f 100644 --- a/package/mysql/Config.in +++ b/package/mysql/Config.in @@ -16,10 +16,13 @@ choice config BR2_PACKAGE_MARIADB bool "mariadb" + depends on BR2_INSTALL_LIBSTDCPP # fmt depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8 + depends on BR2_USE_WCHAR # fmt select BR2_PACKAGE_LIBAIO select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_FMT select BR2_PACKAGE_NCURSES select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_HAS_MYSQL @@ -30,8 +33,9 @@ config BR2_PACKAGE_MARIADB http://www.mariadb.org/ -comment "mariadb needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS +comment "mariadb needs a toolchain w/ dynamic library, C++, wchar" + depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8 config BR2_PACKAGE_ORACLE_MYSQL