aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2015-10-01 08:26:43 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-01 17:49:54 (GMT)
commit33bce0e732c84548f63ffbdae637e41e08a4c76c (patch)
tree23b54db769301c024aed520f0d248d0f858d990c /wpa_supplicant/Makefile
parent242339ded15869b0641d25e9dbb2f1a1f0c2d804 (diff)
downloadhostap-33bce0e732c84548f63ffbdae637e41e08a4c76c.zip
hostap-33bce0e732c84548f63ffbdae637e41e08a4c76c.tar.gz
hostap-33bce0e732c84548f63ffbdae637e41e08a4c76c.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index ad9ead9..4cf00e8 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