From 46c6a56bcde5a39ae9c166baf41f7af397f2e817 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 --- 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 7c4cbef6f..6fc193b27 100755 --- a/utils/gen-common-flags +++ b/utils/gen-common-flags @@ -90,7 +90,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 @@ -110,3 +109,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