summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2016-06-21 11:11:49 +0300
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-06-29 13:33:01 +0200
commitfd591c4c4e356cde12051417112e2ac3c6ff445d (patch)
tree45142b8c2d06fe6efcccca15d550e8eca51e21b6
parent8b1a26d226368cf01b2a7f7e1a01c12315ba8be9 (diff)
downloaddpdk-fd591c4c4e35.zip
dpdk-fd591c4c4e35.tar.gz
dpdk-fd591c4c4e35.tar.xz
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 <pmatilai@redhat.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
-rw-r--r--mk/rte.lib.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk
index 924dfb5..0187ae8 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; \