From 33bce0e732c84548f63ffbdae637e41e08a4c76c Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 1 Oct 2015 11:26:43 +0300 Subject: [PATCH] wpa_cli: Fix static linking with readline The readline library depends on ncurses, so it should be set before ncurses on the linker command line to be able to be statically linked successfully. Signed-off-by: David du Colombier <0intro@gmail.com> Signed-off-by: Baruch Siach --- wpa_supplicant/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index ad9ead90a..4cf00e823 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1412,7 +1412,7 @@ LIBS += $(DBUS_LIBS) ifdef CONFIG_READLINE OBJS_c += ../src/utils/edit_readline.o -LIBS_c += -lncurses -lreadline +LIBS_c += -lreadline -lncurses else ifdef CONFIG_WPA_CLI_EDIT OBJS_c += ../src/utils/edit.o