Files
nixpkgs/pkgs/by-name/do/dovecot/fix-lua-build.patch
Janne Heß 46911f5094 dovecot: Fix building with Lua
Closes https://github.com/NixOS/nixpkgs/issues/538988
The committed patch file was generated by an agent, while all Nix code
was hand-written and hand-tested.

Assisted-by: GLM-5.1
2026-07-09 11:36:05 +02:00

29 lines
550 B
Diff

diff --git a/src/auth/Makefile.am b/src/auth/Makefile.am
index 7474e76fb6..e7fc4aad0f 100644
--- a/src/auth/Makefile.am
+++ b/src/auth/Makefile.am
@@ -21,12 +21,11 @@ LUA_LIB =
AUTH_LUA_LIBS =
AUTH_LUA_LDADD =
if HAVE_LUA
-
+AUTH_LUA_LDADD += $(LUA_LIBS)
if AUTH_LUA_PLUGIN
LUA_LIB += libauthdb_lua.la
else
AUTH_LUA_LIBS += $(LIBDOVECOT_LUA)
-AUTH_LUA_LDADD += $(LUA_LIBS)
endif
endif
@@ -200,7 +199,7 @@ endif
endif
if HAVE_LUA
-auth_libs += $(LIBDOVECOT_LUA) $(LUA_LIBS)
+auth_libs += $(LIBDOVECOT_LUA)
endif
if AUTH_LUA_PLUGIN