From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 5249758D4 for ; Tue, 8 Dec 2015 12:39:20 +0100 (CET) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id B1D94264D; Tue, 8 Dec 2015 11:39:19 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-5-22.ams2.redhat.com [10.36.5.22]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB8BdIAp014859; Tue, 8 Dec 2015 06:39:18 -0500 To: Thomas Monjalon References: <87f15b40e6a0cad89a9eb94dd173cd20878b591a.1449563079.git.pmatilai@redhat.com> <33721268.SXJjAvgPEg@xps13> <5666BCC2.2080107@redhat.com> From: Panu Matilainen Message-ID: <5666C165.4090509@redhat.com> Date: Tue, 8 Dec 2015 13:39:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5666BCC2.2080107@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] mk: fix external shared library dependencies of libraries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 11:39:20 -0000 On 12/08/2015 01:19 PM, Panu Matilainen wrote: > On 12/08/2015 12:11 PM, Thomas Monjalon wrote: >> Hi Panu, >> >> 2015-12-08 10:30, Panu Matilainen: >>> --- a/lib/librte_vhost/Makefile >>> +++ b/lib/librte_vhost/Makefile >>> @@ -44,10 +44,12 @@ CFLAGS += -I vhost_user >>> else >>> CFLAGS += -I vhost_cuse -lfuse >>> LDFLAGS += -lfuse >>> +LDLIBS += -lfuse >>> endif >>> >>> ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y) >>> LDFLAGS += -lnuma >>> +LDLIBS += -lnuma >>> endif >> >> It looks weird to have to declare the dependencies both in >> LDFLAGS and LDLIBS. What is the reason? >> Can we improve it? > > I'd say its just an artifact of the dpdk build system evolution and > surely we can improve it, but I'd leave it post 2.2 to avoid breaking > anything now. Actually, scratch that. That librte_vhost has used LDFLAGS instead of LDLIBS is likely just a mistake that happens to work, but there should be no reason for it. I'll send a v2 with that changed, and while at it, remove the bogus -lfuse from vhost_cuse CFLAGS too. - Panu -