package/nftables: support libedit cli implementation
libedit CLI implementation is supported since commit 9420423900a2 ("cli: add libedit support"), nftables v0.9.8. There's an important fix for Buildroot in v1.0.2, commit 3847fccf0045 ("cli: remove #include <editline/history.h>"). Also in nftables v1.0.1, libedit/editline cli implementation is made the default implementation so let's favor libedit implementation over readline and linenoise if its package is enabled in Buildroot. Cc: Quentin Schulz <foss+buildroot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
ac4d85b467
commit
76d29419a7
@ -20,7 +20,11 @@ else
|
||||
NFTABLES_CONF_OPTS += --with-mini-gmp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
||||
NFTABLES_CONF_OPTS += --with-cli=editline
|
||||
NFTABLES_DEPENDENCIES += libedit
|
||||
NFTABLES_LIBS += -lncurses
|
||||
else ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
NFTABLES_CONF_OPTS += --with-cli=readline
|
||||
NFTABLES_DEPENDENCIES += readline
|
||||
NFTABLES_LIBS += -lncurses
|
||||
|
Loading…
Reference in New Issue
Block a user