mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 09:34:22 +01:00
Makefile: don't try to build sql plugin if there's no sqlite3 support.
Reported-by: @whitslack Fixes: #5940 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Vincenzo Palazzo
parent
456078150a
commit
bcab3f7e83
@@ -87,7 +87,6 @@ PLUGIN_ALL_HEADER := \
|
||||
$(PLUGIN_PAY_LIB_HEADER) \
|
||||
$(PLUGIN_OFFERS_HEADER) \
|
||||
$(PLUGIN_SPENDER_HEADER)
|
||||
PLUGIN_ALL_OBJS := $(PLUGIN_ALL_SRC:.c=.o)
|
||||
|
||||
C_PLUGINS := \
|
||||
plugins/autoclean \
|
||||
@@ -101,10 +100,16 @@ C_PLUGINS := \
|
||||
plugins/offers \
|
||||
plugins/pay \
|
||||
plugins/txprepare \
|
||||
plugins/sql \
|
||||
plugins/spenderp
|
||||
|
||||
ifeq ($(HAVE_SQLITE3),1)
|
||||
C_PLUGINS += plugins/sql
|
||||
PLUGIN_ALL_SRC += $(PLUGIN_SQL_SRC)
|
||||
PLUGIN_ALL_HEADER += $(PLUGIN_SQL_HEADER)
|
||||
endif
|
||||
|
||||
PLUGINS := $(C_PLUGINS)
|
||||
PLUGIN_ALL_OBJS := $(PLUGIN_ALL_SRC:.c=.o)
|
||||
|
||||
ifneq ($(RUST),0)
|
||||
# Builtin plugins must be in this plugins dir to work when we're executed
|
||||
|
||||
Reference in New Issue
Block a user