From: Panu Matilainen Date: Tue, 21 Jun 2016 08:11:49 +0000 (+0300) Subject: mk: check shared library dependencies X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fd591c4c4e356cde12051417112e2ac3c6ff445d;p=dpdk.git mk: check shared library dependencies Require all symbols used by a DSO to be resolvable via LDLIBS at build-time. Previously it was possible to build a library with incomplete dependencies which could then fail at run-time. Signed-off-by: Panu Matilainen Acked-by: Thomas Monjalon --- diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 924dfb53ea..0187ae85c4 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -94,7 +94,7 @@ O_TO_A_DO = @set -e; \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ - -shared $(OBJS-y) $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) + -shared $(OBJS-y) -z defs $(LDLIBS) -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; \