From patchwork Tue Feb 13 22:49:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Drabczyk X-Patchwork-Id: 873193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tJJkxUt1"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zgyQZ3WLPz9t3R for ; Wed, 14 Feb 2018 09:49:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0nU5e68myiEdKK/j8lW1EHclS/lh1iSrX7Tnse8YuFw=; b=tJJkxUt1wgWSrN tqg6sgKmwwv9HaWU74RrPiCtCZkokdyemjuZp5yF19fbr4DjaWWRfCxy8VdCuTR4tg7wsAf8YJzUC 4c0T01tWtDaIHh9NOx5Sq/Py9FoMTlBFtWG3PsNOzFpgVcTXdTGrQFWc6V6insXvUDDRn/VsrvLhX iW8YuSSmGZBtAJy59dR/HotJmpvLfxzfiWOudThjLBv3ZrwSW9aQHAhXkVTwnPr4zNRfAN+m6IFa6 i+vrBHKi0HLxmeybg4ryAK4o9pJ5q11EGESym2HabyXmVSWy7+94wkJelkz2Dd87TSPAUqjhNrR+9 JVHoGuv6zaziQd/4T1Rw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eljNi-0006zP-2p; Tue, 13 Feb 2018 22:48:58 +0000 Received: from gateway36.websitewelcome.com ([192.185.193.12]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eljNR-0006uz-PG for hostap@lists.infradead.org; Tue, 13 Feb 2018 22:48:43 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway36.websitewelcome.com (Postfix) with ESMTP id F27B2400FD861 for ; Tue, 13 Feb 2018 16:48:29 -0600 (CST) Received: from gator3278.hostgator.com ([198.57.247.242]) by cmsmtp with SMTP id ljNFeGDBqcGlpljNFeEmBi; Tue, 13 Feb 2018 16:48:29 -0600 Received: from 89-78-199-217.dynamic.chello.pl ([89.78.199.217]:32922 helo=localhost) by gator3278.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1eljNF-0043cl-0Z for hostap@lists.infradead.org; Tue, 13 Feb 2018 16:48:29 -0600 Date: Tue, 13 Feb 2018 23:49:08 +0100 From: Arkadiusz Drabczyk To: hostap@lists.infradead.org Subject: [PATCH] wpa_supplicant/Makefile: use $(LIBS) with wpa_passphrase Message-ID: <20180213224908.GA19347@comp.lan> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3278.hostgator.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - drabczyk.org X-BWhitelist: no X-Source-IP: 89.78.199.217 X-Source-L: No X-Exim-ID: 1eljNF-0043cl-0Z X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 89-78-199-217.dynamic.chello.pl (localhost) [89.78.199.217]:32922 X-Source-Auth: arkadiusz@drabczyk.org X-Email-Count: 1 X-Source-Cap: cmt1bXZicmg7cmt1bXZicmg7Z2F0b3IzMjc4Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_144841_884819_FB702E6F X-CRM114-Status: UNSURE ( 7.01 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [192.185.193.12 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org wpa_passphrase requires libcrypto from OpenSSL. 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 --- wpa_supplicant/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 4431755..39af773 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)