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 44AB42BCD for ; Thu, 17 Mar 2016 10:37:37 +0100 (CET) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id BE0EAC00F20C; Thu, 17 Mar 2016 09:37:35 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-6-128.ams2.redhat.com [10.36.6.128]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2H9bYx8018855; Thu, 17 Mar 2016 05:37:35 -0400 To: Sergio Gonzalez Monroy , dev@dpdk.org References: <1458170543-47621-1-git-send-email-sergio.gonzalez.monroy@intel.com> From: Panu Matilainen Message-ID: <56EA7ADE.70009@redhat.com> Date: Thu, 17 Mar 2016 11:37:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1458170543-47621-1-git-send-email-sergio.gonzalez.monroy@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Subject: Re: [dpdk-dev] [PATCH] mk: fix linker script when re-building 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: Thu, 17 Mar 2016 09:37:37 -0000 On 03/17/2016 01:22 AM, Sergio Gonzalez Monroy wrote: > The linker script is generated by simply finding all libraries in > RTE_OUTPUT/lib. > > The issue shows up when re-building the DPDK, hence already having a > linker script in that directory, resulting in the linker script > including itself. > > That does not play well with the linker. > > Simply filtering the linker script from all the found libraries solves > the problem. > > Fixes: 948fd64befc3 ("mk: replace the combined library with a linker script") > > Signed-off-by: Sergio Gonzalez Monroy > --- > mk/rte.combinedlib.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mk/rte.combinedlib.mk b/mk/rte.combinedlib.mk > index fe4817b..449358b 100644 > --- a/mk/rte.combinedlib.mk > +++ b/mk/rte.combinedlib.mk > @@ -42,7 +42,7 @@ endif > RTE_LIBNAME := dpdk > COMBINEDLIB := lib$(RTE_LIBNAME)$(EXT) > > -LIBS := $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT))) > +LIBS := $(filter-out $(COMBINEDLIB), $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT)))) > > all: FORCE > $(Q)echo "GROUP ( $(LIBS) )" > $(RTE_OUTPUT)/lib/$(COMBINEDLIB) > Oops, thanks for spotting. Acked-by: Panu Matilainen - Panu -