]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Don't include LIBSODIUM_LIBS in dependencies
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 18 Dec 2017 19:58:16 +0000 (21:58 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 22 Dec 2017 08:00:12 +0000 (10:00 +0200)
Put it into AUTH_LIBS among other libraries that are used by auth.

m4/want_sodium.m4
src/auth/Makefile.am

index b73f973fb0e4213a30c76375849a944a0d4fb076..ba58661babb20032fc5d8ab91698ca276c117bd0 100644 (file)
@@ -5,6 +5,7 @@ AC_DEFUN([DOVECOT_WANT_SODIUM], [
       LDFLAGS="$LDFLAGS $LIBSODIUM_LIBS"
       AC_CHECK_FUNC([crypto_pwhash_str_verify], [
         have_sodium=yes
+        AUTH_LIBS="$AUTH_LIBS $LIBSODIUM_LIBS"
         AC_DEFINE(HAVE_LIBSODIUM, [1], [Define if you have libsodium])
       ])
       LDFLAGS="$OLD_LDFLAGS"
index 92a52dc9ae6b8cdc3a2d0b1479f17e70b96c5454..d4401965987725ce4662b96dee5bcd0012da83da 100644 (file)
@@ -74,8 +74,7 @@ auth_libs = \
        ../lib-ntlm/libntlm.la \
        ../lib-otp/libotp.la \
        $(LIBDOVECOT_LUA) \
-       $(LIBDOVECOT_SQL) \
-       $(LIBSODIUM_LIBS)
+       $(LIBDOVECOT_SQL)
 
 auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
 auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS)