]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: Fix linking when building without Lua
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 22 Jun 2021 11:28:34 +0000 (13:28 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 6 Jul 2021 11:36:30 +0000 (14:36 +0300)
Linking didn't work on some non-Linux OSes (non-GNU linkers?)

src/lib-dict/Makefile.am

index d63522c0e59bf463c737c322485d2dd0255ea73d..97e5eb613520b71fdd2b46bab1b38b5c261de58c 100644 (file)
@@ -1,6 +1,5 @@
 noinst_LTLIBRARIES = \
-       libdict.la \
-       libdict_lua.la
+       libdict.la
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
@@ -26,13 +25,12 @@ headers = \
        dict-private.h \
        dict-transaction-memory.h
 
-if HAVE_LUA
-libdict_lua_la_SOURCES =
-
 # Internally, the dict methods yield via lua_yieldk() as implemented in Lua
 # 5.3 and newer.
 if DLUA_WITH_YIELDS
-libdict_lua_la_SOURCES += \
+noinst_LTLIBRARIES += libdict_lua.la
+
+libdict_lua_la_SOURCES = \
        dict-lua.c \
        dict-iter-lua.c \
        dict-txn-lua.c
@@ -43,7 +41,6 @@ libdict_lua_la_CPPFLAGS = \
 libdict_lua_la_LIBADD =
 libdict_lua_la_DEPENDENCIES = \
        libdict.la
-endif
 
 headers += \
        dict-lua.h \