this patch obviates the problem (thanks to S.Golovan)

---
+++
@@ -37,7 +37,7 @@

 static const char *const mysqlStubLibNames[] = {
     /* @LIBNAMES@: DO NOT EDIT THESE NAMES */
-    "mysqlclient_r", "mysqlclient", "mysql", NULL
+    "mysqlclient_r", "mysqlclient", "mysql", "mariadbclient", NULL
     /* @END@ */
 };