On 2022-02-26 10:29 a.m., Dimitri wrote:
After that i've tried to configure with following:

LDFLAGS="-L/test/core/mariadb/lib" ./configure --prefix=/test/core/dovecot --with-ssldir=/test/core/dovecot/tls --with-mysql


You might need CPPFLAGS as well. (e.g. CPPFLAGS="-I/test/core/mariadb/include")
Check also "config.log" for errors.