Thanks for your submission! I cloned this into a MR at https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/53 so others can review, and that CI can verify that it cross-builds work now.
- Bug#1051222: mariadb FTCBFS: passes host CFLAGS to the n... Helmut Grohne
- Bug#1051222: [debian-mysql] Bug#1051222: mariadb FT... Otto Kekäläinen