From: Bruce Richardson Date: Fri, 21 Apr 2017 13:50:21 +0000 (+0100) Subject: net/ark: fix build on FreeBSD X-Git-Tag: spdx-start~3413 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7e015a47949a04d7c516c85c400a02427698a781;p=dpdk.git net/ark: fix build on FreeBSD On FreeBSD it's not necessary to use -ldl to link apps which use dlopen. This error only showed up with a shared library gcc build, not standard build using static libs. Fixes: 1131cbf0fb2b ("net/ark: stub PMD for Atomic Rules Arkville") Signed-off-by: Bruce Richardson Acked-by: John Miller --- diff --git a/drivers/net/ark/Makefile b/drivers/net/ark/Makefile index b3d462ff50..ca64b1957a 100644 --- a/drivers/net/ark/Makefile +++ b/drivers/net/ark/Makefile @@ -59,6 +59,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark_udm.c # this lib depends upon: LDLIBS += -lpthread +ifdef CONFIG_RTE_EXEC_ENV_LINUXAPP LDLIBS += -ldl +endif include $(RTE_SDK)/mk/rte.lib.mk