Skip to content

Commit

Permalink
lib-lua: Fix lua library dependencies when building --without-shared-…
Browse files Browse the repository at this point in the history
…libs

Linking against libdlua didn't automatically link with liblua, causing
lua plugin loading to fail.
  • Loading branch information
sirainen committed Oct 30, 2024
1 parent 2adea4a commit 14132fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib-lua/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test_programs += \
test-dns-lua
endif

libdlua_la_LIBADD = $(WITH_YIELDS_LUA)
libdlua_la_LIBADD = $(WITH_YIELDS_LUA) $(LUA_LIBS)
libdlua_la_DEPENDENCIES = $(WITH_YIELDS_LUA)

pkglib_LTLIBRARIES = libdovecot-lua.la
Expand All @@ -46,8 +46,7 @@ libdovecot_lua_la_DEPENDENCIES = \
$(LIBDOVECOT_DEPS)
libdovecot_lua_la_LIBADD = \
libdlua.la \
$(LIBDOVECOT) \
$(LUA_LIBS)
$(LIBDOVECOT)
libdovecot_lua_la_LDFLAGS = -export-dynamic

headers = \
Expand Down

0 comments on commit 14132fb

Please sign in to comment.