Skip to content

Commit 1a7fa59

Browse files
committed
lib-dovecot: Make it possible to do semistatic libdovecot.so
This can be now done with setting - ZLIB_LIBS_STATIC to libz.a location - LIBPCRE_LIBS_STATIC to libpcre2-32.a location - SSL_LIBS to both libssl.a and libcrypto.a location
1 parent f89056e commit 1a7fa59

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,11 @@ LIBDOVECOT_LIBLANG='$(top_builddir)/src/lib-language/libdovecot-language.la'
644644
LIBDOVECOT_OPENSSL='$(top_builddir)/src/lib-ssl-iostream/libssl_iostream_openssl.la'
645645
LIBDOVECOT_OPENSSL_DEPS="$LIBDOVECOT_OPENSSL"
646646

647-
LIBDOVECOT_TEST_LIBS="\$(LIBPCRE_LIBS) \$(ZLIB_LIBS) \$(MODULE_LIBS) \$(DLLIB) -lm"
647+
LIBDOVECOT_TEST_LIBS="\$(LIBPCRE_LIBS_STATIC) \$(LIBPCRE_LIBS) \$(ZLIB_LIBS_STATIC) \$(ZLIB_LIBS) \$(MODULE_LIBS) \$(DLLIB) -lm"
648648

649649
AC_SUBST(LIBDOVECOT)
650+
AC_SUBST(LIBPCRE_LIBS_STATIC)
651+
AC_SUBST(ZLIB_LIBS_STATIC)
650652
AC_SUBST(LIBDOVECOTTEST_LIBS)
651653
AC_SUBST(LIBDOVECOT_LA_LIBS)
652654
AC_SUBST(LIBDOVECOT_DEPS)

src/lib-dovecot/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ libdovecot_la_SOURCES =
55
libdovecot_la_LIBADD = \
66
$(LIBDOVECOT_LA_LIBS) \
77
$(MODULE_LIBS) \
8+
$(ZLIB_LIBS_STATIC) \
9+
$(ZLIB_LIBS) \
10+
$(LIBPCRE_LIBS_STATIC) \
811
$(LIBPCRE_LIBS) \
912
$(RELRO_LDFLAGS)
1013

src/lib-regex/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ noinst_LTLIBRARIES=libdregex.la
2323

2424
if BUILD_LIBREGEX
2525
libdregex_la_SOURCES = regex.c
26-
libdregex_la_LIBADD = $(LIBPCRE_LIBS)
26+
libdregex_la_LIBADD = $(LIBPCRE_LIBS_STATIC) $(LIBPCRE_LIBS)
2727

2828
EXTRA_DIST =
2929

src/lib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $(srcdir)/unicode-data-tables.c $(srcdir)/unicode-data-tables.h \
8383
$(srcdir)/unicode-ucd-compile.py $(UCD_FILES)
8484
$(AM_V_GEN)$(PYTHON) $(srcdir)/unicode-ucd-compile.py $(UCD_DIR) $(srcdir)
8585

86-
liblib_la_LIBADD = $(LIBUNWIND_LIBS) $(ZLIB_LIBS)
86+
liblib_la_LIBADD = $(LIBUNWIND_LIBS) $(ZLIB_LIBS_STATIC) $(ZLIB_LIBS)
8787
liblib_la_SOURCES = \
8888
array.c \
8989
aqueue.c \

0 commit comments

Comments
 (0)