From: David du Colombier <0intro@gmail.com> Date: Thu, 1 Oct 2015 08:26:43 +0000 (+0300) Subject: wpa_cli: Fix static linking with readline X-Git-Tag: hostap_2_6~1617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33bce0e732c84548f63ffbdae637e41e08a4c76c;p=thirdparty%2Fhostap.git 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 --- 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