summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2015-07-13 10:51:40 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-13 11:26:45 +0200
commit05c69b4403242c2bda15db42e45371b45235227a (patch)
treef2e6ce38598a29e4da92442553235ff93ab11eb6 /mk
parent27bd48ffe9ad13b0e20ac5bb4162b83b15305606 (diff)
downloaddpdk-05c69b4403242c2bda15db42e45371b45235227a.zip
dpdk-05c69b4403242c2bda15db42e45371b45235227a.tar.gz
dpdk-05c69b4403242c2bda15db42e45371b45235227a.tar.xz
mk: fix shared lib build with stable abi
When next ABI is enabled, the shared lib extension is .so.x.1. That's why a double basename was introduced. But the "ifeq NEXT_ABI" was forgotten, removing the .so extension when NEXT_ABI is disabled. It was preventing the linker from finding the .so libraries. Fixes: 506f51cc0da7 ("mk: enable next abi preview") Reported-by: John McNamara <john.mcnamara@intel.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: John McNamara <john.mcnamara@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.lib.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk
index f15de9b..9ff5cce 100644
--- a/mk/rte.lib.mk
+++ b/mk/rte.lib.mk
@@ -173,7 +173,11 @@ $(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)
$(Q)ln -s -f $< $(basename $(basename $@))
+else
+ $(Q)ln -s -f $< $(basename $@)
+endif
endif
#