aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2018-03-24 05:42:25 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-03-29 17:29:20 +0300
commit9a5a18af733c07109224e328ca0ac640ff49f845 (patch)
treea277396ebe52e6a9a24eca26eada07482da31bce /example
parent06321dc028b83ea78b39eb9673859a40f9da37f7 (diff)
build: another DPDK-linking fix
Try our best to link with DPDK, if we are doing static linking of examples and tests and we detected shared DPDK library. Build the list of static libraries, in hope they are present on the system (like in Debian/Ubuntu DPDK packages). Linking can still fail, as we have warned during configure time. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/Makefile.inc b/example/Makefile.inc
index 3c8060da9..083c537f2 100644
--- a/example/Makefile.inc
+++ b/example/Makefile.inc
@@ -6,6 +6,8 @@ LDADD = $(LIB)/libodp-linux.la $(LIB)/libodphelper.la
# Do not link to DPDK twice in case of dynamic linking with ODP
if STATIC_APPS
+LDADD += $(DPDK_LIBS_LT_STATIC)
+else
LDADD += $(DPDK_LIBS_LT)
endif