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
mr9.4.1
Guillem Jover 5 years ago
parent 95ab768304
commit 7e3d61ef4d

@ -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)

Loading…
Cancel
Save