From 918c06ded91e28ad42a34419b2843457c8b8ad51 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 12 Dec 2025 13:34:05 -0400 Subject: [PATCH] MT#55283 support native libmariadb closes #2036 Change-Id: I24066ceb5abd2a289002243615a2875febe4fd82 (cherry picked from commit 999547676a095e06b2d581f067cba42ad84902d3) (cherry picked from commit 745a004d72d608ede28c8f6a60a21f4e2f36b2ae) --- utils/gen-common-flags | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/gen-common-flags b/utils/gen-common-flags index 4dbbf92c3..a1e1fde1a 100755 --- a/utils/gen-common-flags +++ b/utils/gen-common-flags @@ -92,7 +92,6 @@ gen-pkgconf-flags OPENSSL openssl gen-pkgconf-flags OPUS opus gen-pkgconf-flags SPANDSP spandsp gen-pkgconf-flags LIBJWT libjwt -gen-pkgconf-flags MYSQL mysqlclient gen-pkgconf-flags LIBHIREDIS hiredis gen-pkgconf-flags LIBPCAP libpcap @@ -112,3 +111,10 @@ if pkg-config --atleast-version=2.3 liburing; then gen-pkgconf-flags LIBURING liburing echo "CFLAGS_LIBURING += -DHAVE_LIBURING" fi + +# alternative MySQL/MariaDB +if pkg-config --exists libmariadb; then + gen-pkgconf-flags MYSQL libmariadb +else + gen-pkgconf-flags MYSQL mysqlclient +fi