From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: Re: [PATCH] mk: fix external shared library dependencies of libraries Date: Tue, 8 Dec 2015 13:19:30 +0200 Message-ID: <5666BCC2.2080107@redhat.com> References: <87f15b40e6a0cad89a9eb94dd173cd20878b591a.1449563079.git.pmatilai@redhat.com> <33721268.SXJjAvgPEg@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 3949858D4 for ; Tue, 8 Dec 2015 12:19:33 +0100 (CET) In-Reply-To: <33721268.SXJjAvgPEg@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. I'm planning further work in this area and one of the things on my TODO list is to look into the LDFLAGS/LDLIBS duplication. Technically, LDLIBS should only contain the libraries to link, and all the others directives (such as linker path etc) should go to LDFLAGS. - Panu -