From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id BB1995683 for ; Thu, 17 Mar 2016 00:22:25 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 16 Mar 2016 16:22:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,346,1455004800"; d="scan'208";a="925766213" Received: from sie-lab-212-209.ir.intel.com (HELO silpixa00377983.ir.intel.com) ([10.237.212.209]) by fmsmga001.fm.intel.com with ESMTP; 16 Mar 2016 16:22:23 -0700 From: Sergio Gonzalez Monroy To: dev@dpdk.org Date: Wed, 16 Mar 2016 23:22:23 +0000 Message-Id: <1458170543-47621-1-git-send-email-sergio.gonzalez.monroy@intel.com> X-Mailer: git-send-email 2.4.3 Subject: [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: Wed, 16 Mar 2016 23:22:26 -0000 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) -- 2.4.3