]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_passphrase: Include $(LIBS) for linking
authorArkadiusz Drabczyk <arkadiusz@drabczyk.org>
Tue, 13 Feb 2018 22:49:08 +0000 (23:49 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 17 Feb 2018 16:11:40 +0000 (18:11 +0200)
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 <arkadiusz@drabczyk.org>
wpa_supplicant/Makefile

index 4431755c69d989a77f6d10f384361c05159d1e37..39af77351d3d9b224be8f834933791bac9b9156c 100644 (file)
@@ -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)