From 4758404a30842f76bc271f5d2c31f3f2a6224b92 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 10 Mar 2016 15:16:01 +0200 Subject: [PATCH] mk: fix eal shared library dependencies Add DT_NEEDED entries for librte_eal external dependencies. Details between the platforms differ somewhat, and for static builds they need to be handled from mk/exec-env still. Signed-off-by: Panu Matilainen --- lib/librte_eal/bsdapp/eal/Makefile | 4 ++++ lib/librte_eal/linuxapp/eal/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/Makefile b/lib/librte_eal/bsdapp/eal/Makefile index 9ecf42902d..349b0d0360 100644 --- a/lib/librte_eal/bsdapp/eal/Makefile +++ b/lib/librte_eal/bsdapp/eal/Makefile @@ -44,6 +44,10 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_ring CFLAGS += -I$(RTE_SDK)/lib/librte_mempool CFLAGS += $(WERROR_FLAGS) -O3 +LDLIBS += -lexecinfo +LDLIBS += -lpthread +LDLIBS += -lgcc_s + EXPORT_MAP := rte_eal_version.map LIBABIVER := 2 diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile index d72f035526..25b3a8e9e7 100644 --- a/lib/librte_eal/linuxapp/eal/Makefile +++ b/lib/librte_eal/linuxapp/eal/Makefile @@ -49,6 +49,10 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_mempool CFLAGS += -I$(RTE_SDK)/lib/librte_ivshmem CFLAGS += $(WERROR_FLAGS) -O3 +LDLIBS += -ldl +LDLIBS += -lpthread +LDLIBS += -lgcc_s + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) := eal.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_hugepage_info.c -- 2.20.1