Browse Source

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 <baruch@tkos.co.il>
David du Colombier 9 years ago
parent
commit
33bce0e732
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/Makefile

+ 1 - 1
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