]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Move things needed by auth and doveadm to libauth-crypt.la
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 24 Feb 2025 07:15:35 +0000 (09:15 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 26 Feb 2025 09:18:11 +0000 (09:18 +0000)
Avoids linking everything with libsodium and libcrypt

src/auth/Makefile.am
src/doveadm/Makefile.am
src/lib-auth/Makefile.am

index 7c185ee0e8e4632a5a2620fdf231f697bfb52fdd..7615c81fa7614841436d7230acc5c77316cb8003 100644 (file)
@@ -64,6 +64,7 @@ AM_CPPFLAGS = \
 auth_LDFLAGS = -export-dynamic
 
 auth_libs = \
+       ../lib-auth/libauth-crypt.la \
        $(AUTH_LUA_LIBS) \
        $(LIBDOVECOT_SQL)
 
index 63c2d6c28b0374fa8992fb624857dfc6525cd495..820b5f651cef4e15cac4ee6bad361ec4a1ca71c7 100644 (file)
@@ -42,6 +42,7 @@ AM_CPPFLAGS = \
 
 
 libs = \
+       ../lib-auth/libauth-crypt.la \
        dsync/libdsync.la \
        ../lib-compression/libcompression.la
 
index eb523a49c3f6ecae0db68eb32ffb0173ee1e71b7..ad48598e9db44f441accbc4bc1ea751f4f8358d4 100644 (file)
@@ -1,4 +1,4 @@
-noinst_LTLIBRARIES = libauth.la
+noinst_LTLIBRARIES = libauth-crypt.la libauth.la
 
 AM_CPPFLAGS = \
        $(LIBSODIUM_CFLAGS) \
@@ -7,11 +7,13 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib-otp
 
 libauth_la_SOURCES = \
-       crypt-blowfish.c \
-       mycrypt.c \
        auth-scram.c \
        auth-scram-client.c \
-       auth-scram-server.c \
+       auth-scram-server.c
+
+libauth_crypt_la_SOURCES = \
+       crypt-blowfish.c \
+       mycrypt.c \
        password-scheme.c \
        password-scheme-crypt.c \
        password-scheme-md5crypt.c \
@@ -20,7 +22,8 @@ libauth_la_SOURCES = \
        password-scheme-pbkdf2.c \
        password-scheme-sodium.c
 
-libauth_la_LIBADD = \
+libauth_crypt_la_LIBADD = \
+       libauth.la \
        $(LIBSODIUM_LIBS) \
        $(CRYPT_LIBS)