]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Fix static linking with readline
authorDavid du Colombier <0intro@gmail.com>
Thu, 1 Oct 2015 08:26:43 +0000 (11:26 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 1 Oct 2015 17:49:54 +0000 (20:49 +0300)
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>
wpa_supplicant/Makefile

index ad9ead90a8a9909f2407dc18f0ab0a7c0ac68af1..4cf00e823dc67bd946e2bc19fd643d098179947a 100644 (file)
@@ -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