summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk.am
diff options
context:
space:
mode:
authorSachin Saxena <sachin.saxena@nxp.com>2018-05-10 16:22:09 +0530
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-16 20:00:04 +0000
commitee6ddceaf54fa055ac3fc3997156f5ee0c9ca4ae (patch)
treed1762a1a160071a3d2634034a04de2b2755545dd /src/plugins/dpdk.am
parent48750899d7da52a38b5e7f940c739e2b3f10f236 (diff)
Fix broken compilation for non-numa aware platforms
- The dpdk plugin always looks for libnuma library during compilation. For non-numa aware platforms compilation breaks, if third party libnuma lib is not available. - Issue is more severe with Cross Compilation scenario where one has to download and cross compile libnuma-dev package even when target platofrom is NUMA disabled. Like when cross compiling for ARM platforms, Linaro tool-chain doesn't have libnuma by default. Change-Id: Ib85b3188b787c23ba33b47e3f6123c74fd37190e Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com>
Diffstat (limited to 'src/plugins/dpdk.am')
-rw-r--r--src/plugins/dpdk.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/dpdk.am b/src/plugins/dpdk.am
index 7c6e0058992..af7d96d7c17 100644
--- a/src/plugins/dpdk.am
+++ b/src/plugins/dpdk.am
@@ -26,7 +26,9 @@ if WITH_ISA_L_CRYPTO_LIB
dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libisal_crypto.a,-l:libisal_crypto.a
endif
dpdk_plugin_la_CFLAGS = $(AM_CFLAGS)
+if WITH_LIBNUMA
dpdk_plugin_la_LDFLAGS += -Wl,-lnuma
+endif
dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl
dpdk_plugin_la_LIBADD =