From 7e3d61ef4d6a939653b22f6600b21cac1ba5409e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 26 Feb 2021 22:54:00 +0100 Subject: [PATCH] TT#111150 Use libmariadb.pc instead of mariadb.pc On Debian buster the latter contains transitive dependencies in Libs, instead of in Libs.private, which leaks linking implementation details. Change-Id: Ia131fe82444b8c2204976df75be047ab6d17c561 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7b18f4b..ee8b84a 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ CPPFLAGS += -DMEDIATOR_VERSION="\"$(VERSION)\"" GLIB_CFLAGS := $(shell pkg-config glib-2.0 --cflags) # mariadb/mysql support -ifeq ($(shell pkg-config --exists mariadb && echo yes),yes) -MYSQL_CFLAGS := $(shell pkg-config --cflags mariadb) -MYSQL_LDFLAGS := $(shell pkg-config --libs mariadb) +ifeq ($(shell pkg-config --exists libmariadb && echo yes),yes) +MYSQL_CFLAGS := $(shell pkg-config --cflags libmariadb) +MYSQL_LDFLAGS := $(shell pkg-config --libs libmariadb) else ifneq ($(shell which mariadb_config),) MYSQL_CFLAGS := $(shell mariadb_config --cflags) MYSQL_LDFLAGS := $(shell mariadb_config --libs)