From: Arkadiusz Drabczyk Date: Tue, 13 Feb 2018 22:49:08 +0000 (+0100) Subject: wpa_passphrase: Include $(LIBS) for linking X-Git-Tag: hostap_2_7~563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14dcb22a5bf9909f73090512bf102a2a56d2b7fd;p=thirdparty%2Fhostap.git wpa_passphrase: Include $(LIBS) for linking wpa_passphrase requires libcrypto from OpenSSL (or another selected library). User can set an alternative path to OpenSSL libraries by defining LIBS at the top of .config but if $(LIBS) is not actually used wrong libcrypto is used or compilation fails if there is no libcrypto in the default locations cc is looking for it. It's especially bad for cross-compilers that fail with 'cannot find -lcrypto' message. Signed-off-by: Arkadiusz Drabczyk --- diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 4431755c6..39af77351 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1868,7 +1868,7 @@ preauth_test: $(OBJS_t2) @$(E) " LD " $@ wpa_passphrase: $(OBJS_p) - $(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p) + $(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p) $(LIBS) @$(E) " LD " $@ wpa_cli: $(OBJS_c)