From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akhil Goyal Subject: Re: [PATCH v2] crypto/openssl: add openssl path for cross compile Date: Tue, 5 Sep 2017 14:07:22 +0530 Message-ID: <3a3b9ff6-e0b6-8de1-4def-693e7f70f152@nxp.com> References: <20170728110738.28922-2-akhil.goyal@nxp.com> <20170829070205.11497-1-akhil.goyal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: "hemant.agrawal@nxp.com" , "Doherty, Declan" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0067.outbound.protection.outlook.com [104.47.36.67]) by dpdk.org (Postfix) with ESMTP id 9B91F330D for ; Tue, 5 Sep 2017 10:37:27 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Pablo, On 9/5/2017 1:52 PM, De Lara Guarch, Pablo wrote: > 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 >> >> OPENSSL_PATH should be defined in case openssl driver is cross compiled >> >> 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) >> += -lrte_pmd_aesni_mb >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) += - >> L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += - >> lrte_pmd_aesni_gcm >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += - >> L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB >> -_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl - >> lcrypto >> +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += - >> 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 -lcrypto > /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 against libraries in /lib/. > I suggest adding a condition to add the openssl directory only if OPENSSL_PATH is defined: > > +ifeq ($(OPENSSL_PATH),) > +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl -lcrypto > +else > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto > +endif > > Would this work for you? > Thanks for the suggestion. yes this would be fine. I will update the patch accordingly. -Akhil