app/testpmd: use LDLIBS in makefile
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 31 Jan 2017 15:04:47 +0000 (15:04 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Feb 2017 22:12:55 +0000 (23:12 +0100)
_LDLIBS is for internal usage, convert to LDLIBS usage.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/Makefile

index a1500bb..7e52eb8 100644 (file)
@@ -60,8 +60,15 @@ SRCS-y += icmpecho.c
 SRCS-$(CONFIG_RTE_LIBRTE_IEEE1588) += ieee1588fwd.c
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
-_LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += -lrte_pmd_ixgbe
-_LDLIBS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += -lrte_pmd_i40e
+
+ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y)
+LDLIBS += -lrte_pmd_ixgbe
+endif
+
+ifeq ($(CONFIG_RTE_LIBRTE_I40E_PMD),y)
+LDLIBS += -lrte_pmd_i40e
+endif
+
 endif
 
 CFLAGS_cmdline.o := -D_GNU_SOURCE