388f6b
diff --git a/perl/sieve/managesieve/Makefile.PL.in b/perl/sieve/managesieve/Makefile.PL.in
388f6b
index 2bb715d..422504d 100644
388f6b
--- a/perl/sieve/managesieve/Makefile.PL.in
388f6b
+++ b/perl/sieve/managesieve/Makefile.PL.in
388f6b
@@ -69,7 +69,7 @@ WriteMakefile(
388f6b
     'ABSTRACT'  => 'Cyrus Sieve management interface',
388f6b
     'VERSION_FROM' => "@top_srcdir@/perl/sieve/managesieve/managesieve.pm", # finds $VERSION
388f6b
     'MYEXTLIB'  => '../lib/.libs/libisieve.a @top_builddir@/perl/.libs/libcyrus.a @top_builddir@/perl/.libs/libcyrus_min.a',
388f6b
-    'LIBS'	=> ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@"],
388f6b
+    'LIBS'	=> ["$LIB_SASL @SSL_LIBS@ @LIB_UUID@ @ZLIB@ -lsqlite3 -lpq -lmariadb"],
388f6b
     'CCFLAGS'	=> '@GCOV_CFLAGS@',
388f6b
     'DEFINE'	=> '-DPERL_POLLUTE',     # e.g., '-DHAVE_SOMETHING' 
388f6b
     'INC'	=> "-I@top_srcdir@/lib -I@top_srcdir@/perl/sieve -I@top_srcdir@/perl/sieve/lib @SASLFLAGS@ @SSL_CPPFLAGS@",