From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B8A15330D for ; Tue, 5 Sep 2017 10:22:43 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 05 Sep 2017 01:22:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,479,1498546800"; d="scan'208";a="125636325" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga004.jf.intel.com with ESMTP; 05 Sep 2017 01:22:41 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX152.ger.corp.intel.com (163.33.192.66) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 5 Sep 2017 09:22:41 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by IRSMSX156.ger.corp.intel.com ([169.254.3.130]) with mapi id 14.03.0319.002; Tue, 5 Sep 2017 09:22:41 +0100 From: "De Lara Guarch, Pablo" To: Akhil Goyal , "dev@dpdk.org" CC: "hemant.agrawal@nxp.com" , "Doherty, Declan" Thread-Topic: [PATCH v2] crypto/openssl: add openssl path for cross compile Thread-Index: AQHTIJUS/9sWFgqjXE+UnlxF/5xLZqKl/YOQ Date: Tue, 5 Sep 2017 08:22:39 +0000 Message-ID: References: <20170728110738.28922-2-akhil.goyal@nxp.com> <20170829070205.11497-1-akhil.goyal@nxp.com> In-Reply-To: <20170829070205.11497-1-akhil.goyal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] crypto/openssl: add openssl path for cross compile X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 08:22:44 -0000 Hi Akhil, > -----Original Message----- > From: Akhil Goyal [mailto:akhil.goyal@nxp.com] > Sent: Tuesday, August 29, 2017 8:02 AM > To: dev@dpdk.org; De Lara Guarch, Pablo > > Cc: hemant.agrawal@nxp.com; Doherty, Declan > ; Akhil Goyal > Subject: [PATCH v2] crypto/openssl: add openssl path for cross compile >=20 > OPENSSL_PATH should be defined in case openssl driver is cross compiled >=20 > Signed-off-by: Akhil Goyal > --- ... > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -151,7 +151,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) > +=3D -lrte_pmd_aesni_mb > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) +=3D - > L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) +=3D - > lrte_pmd_aesni_gcm > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) +=3D - > L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB > -_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) +=3D -lrte_pmd_openssl - > lcrypto > +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) +=3D - > L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto I am getting the following messages when compiling: /usr/bin/ld: skipping incompatible /lib/libcrypto.so when searching for -lc= rypto /usr/bin/ld: skipping incompatible /lib/librt.so when searching for -lrt /usr/bin/ld: skipping incompatible /lib/libm.so when searching for -lm Since, OPENSSL_PATH is not defined in my system, it is trying to link again= st libraries in /lib/. I suggest adding a condition to add the openssl directory only if OPENSSL_P= ATH is defined: +ifeq ($(OPENSSL_PATH),) +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) +=3D -lrte_pmd_openssl -lcryp= to +else _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) +=3D -L${OPENSSL_PATH}/lib -l= rte_pmd_openssl -lcrypto +endif Would this work for you? Thanks, Pablo