From d90f09dbc748563b9fbbeff2a94d86f772a06e29 Mon Sep 17 00:00:00 2001 From: "Andrew G. Harvey" Date: Mon, 7 Dec 2015 13:48:57 +0000 Subject: [PATCH] mk: remove ABI versioning for external library Signed-off-by: Andrew G. Harvey Signed-off-by: Thomas Monjalon --- mk/rte.extlib.mk | 2 ++ mk/rte.lib.mk | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mk/rte.extlib.mk b/mk/rte.extlib.mk index ba066bc378..f58d96cdf1 100644 --- a/mk/rte.extlib.mk +++ b/mk/rte.extlib.mk @@ -31,6 +31,8 @@ MAKEFLAGS += --no-print-directory +EXTLIB_BUILD := y + # 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 1f1b6e11d0..3f026bf1e6 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -35,16 +35,20 @@ include $(RTE_SDK)/mk/internal/rte.clean-pre.mk include $(RTE_SDK)/mk/internal/rte.build-pre.mk include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk +EXTLIB_BUILD ?= n + # VPATH contains at least SRCDIR VPATH += $(SRCDIR) ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) +ifeq ($(EXTLIB_BUILD),n) ifeq ($(CONFIG_RTE_NEXT_ABI),y) LIB := $(LIB).1 endif CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif +endif _BUILD = $(LIB) @@ -175,7 +179,7 @@ $(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) -ifeq ($(CONFIG_RTE_NEXT_ABI),y) +ifeq ($(CONFIG_RTE_NEXT_ABI)$(EXTLIB_BUILD),yn) $(Q)ln -s -f $< $(basename $(basename $@)) else $(Q)ln -s -f $< $(basename $@)