From aec1fe6fe84f2d057d4694752dd161eadc113032 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 4 Feb 2015 10:22:50 +0200 Subject: [PATCH] mk: add DT_SONAME to shared libraries This is all-important now that the libraries are versioned: DT_SONAME presence instructs the runtime dynamic linker to load the shared object by the versioned name in DT_SONAME instead of the the unversioned symlink name used during build. Signed-off-by: Panu Matilainen Acked-by: Neil Horman --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 865a3077d5..0d7482d4ff 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -79,7 +79,7 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) -O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -o $(LIB) +O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -Wl,-soname,$(LIB) -o $(LIB) O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") O_TO_S_DO = @set -e; \ -- 2.20.1