Skip to content

Commit 786b362

Browse files
committed
Warn that MariaDB's client library does not work
Debian no longer supplies libmysqlclient. It provides symlinks from mysql_config to mariadb_config. Unfortunately this gives us an unhelpful compilation error because we are using MySQL exclusive features.
1 parent 58bba59 commit 786b362

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile.PL

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,18 @@ assert_lib(
151151
LIBS => $opt->{libs},
152152
);
153153

154-
print "Looks good.\n\n";
154+
if ($opt->{libs} =~ /mariadb/) {
155+
print <<"MSG";
156+
157+
The chosen MySQL client library appears to be MariaDB's. Compilation may fail.
158+
Consider DBD::MariaDB.
159+
160+
161+
MSG
162+
}
163+
else {
164+
print "Looks good.\n\n";
165+
}
155166

156167
sleep 1;
157168

0 commit comments

Comments
 (0)