diff mbox series

[v4,3/5] build: configure: print notice about unsupported configuration

Message ID 1516762814-30313-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v4,1/5] build: odp_dpdk: another fix for linking with shared libdpdk | expand

Commit Message

Github ODP bot Jan. 24, 2018, 3 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


If we are using shared DPDK library, we can not guarantee that there
will be a static one (to fullfill dependencies if gcc -static is used).
Thus mark this configuration as not supported.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 416 (lumag:trav-dpdk-shared)
 ** https://github.com/Linaro/odp/pull/416
 ** Patch: https://github.com/Linaro/odp/pull/416.patch
 ** Base sha: b122176ee59494dd957f0f5ff41d4b55a1477e13
 ** Merge commit sha: b3627670bafa53ad9e0b7833b8864144ce6d7621
 **/
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 56a422b4b..6d76bead8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,6 +191,12 @@  AC_ARG_ENABLE([static-applications],
 			      [ with ODP])], [],
 	      [enable_static_applications=yes])
 AM_CONDITIONAL([STATIC_APPS], [test "x$enable_static_applications" != "xno"])
+if test "x$DPDK_SHARED" = "xyes" -a "x$enable_static_applications" != "xno" ;
+then
+	AC_MSG_WARN([Static linking of examples and tests might fail when ]
+	   [shared DPDK is detected. If build fails please retry with ]
+	   [--disable-static-applications])
+fi
 
 ##########################################################################
 # Include m4 files