[PATCH] wpa_supplicant: fix static link with readline

Baruch Siach baruch
Thu Oct 1 01:26:43 PDT 2015


From: David du Colombier <0intro at gmail.com>

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 at gmail.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 wpa_supplicant/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index ad9ead90a8a9..4cf00e823dc6 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
-- 
2.5.3




More information about the Hostap mailing list