From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C3CBD8E58 for ; Fri, 20 Nov 2015 16:35:00 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 20 Nov 2015 07:35:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,323,1444719600"; d="scan'208";a="690570918" Received: from rhorton-mobl.ger.corp.intel.com (HELO localhost.ir.intel.com) ([163.33.229.164]) by orsmga003.jf.intel.com with ESMTP; 20 Nov 2015 07:35:00 -0800 From: Remy Horton To: dev@dpdk.org Date: Fri, 20 Nov 2015 15:34:55 +0000 Message-Id: <1448033697-32613-2-git-send-email-remy.horton@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1448033697-32613-1-git-send-email-remy.horton@intel.com> References: <1448033697-32613-1-git-send-email-remy.horton@intel.com> Subject: [dpdk-dev] [PATCH v9 1/3] Remove ABI requirement for external library builds. 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: Fri, 20 Nov 2015 15:35:01 -0000 Signed-off-by: Andrew G. Harvey --- mk/rte.extlib.mk | 2 ++ mk/rte.lib.mk | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/mk/rte.extlib.mk b/mk/rte.extlib.mk index ba066bc..4d459e4 100644 --- a/mk/rte.extlib.mk +++ b/mk/rte.extlib.mk @@ -31,6 +31,8 @@ MAKEFLAGS += --no-print-directory +EXTLIB_BUILD := 1 + # we must create the output dir first and recall the same Makefile # from this directory ifeq ($(NOT_FIRST_CALL),) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index fcc8e20..7262b02 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -40,11 +40,13 @@ VPATH += $(SRCDIR) ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) +ifndef EXTLIB_BUILD ifeq ($(CONFIG_RTE_NEXT_ABI),y) LIB := $(LIB).1 endif CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif +endif _BUILD = $(LIB) @@ -174,12 +176,16 @@ $(RTE_OUTPUT)/lib/$(LIB): $(LIB) @[ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib $(Q)cp -f $(LIB) $(RTE_OUTPUT)/lib ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +ifdef EXTLIB_BUILD + $(Q)ln -s -f $< $(basename $@) +else ifeq ($(CONFIG_RTE_NEXT_ABI),y) $(Q)ln -s -f $< $(basename $(basename $@)) else $(Q)ln -s -f $< $(basename $@) endif endif +endif # # Clean all generated files -- 1.9.3