diff mbox series

[v4,1/3] eal: disable function versioning on Windows

Message ID 20200702131409.17964-2-fady@mellanox.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series build mempool on Windows | expand

Checks

Context Check Description
ci/Intel-compilation fail apply issues
ci/Performance-Testing fail build patch failure
ci/checkpatch success coding style OK

Commit Message

Fady Bader July 2, 2020, 1:14 p.m. UTC
Function versioning implementation is not supported by Windows.
Function versioning was disabled on Windows.

Signed-off-by: Fady Bader <fady@mellanox.com>
---
 lib/librte_eal/include/rte_function_versioning.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/lib/librte_eal/include/rte_function_versioning.h b/lib/librte_eal/include/rte_function_versioning.h
index f588f2643b..c0cb13909f 100644
--- a/lib/librte_eal/include/rte_function_versioning.h
+++ b/lib/librte_eal/include/rte_function_versioning.h
@@ -11,6 +11,14 @@ 
 #error Use of function versioning disabled, is "use_function_versioning=true" in meson.build?
 #endif
 
+/*
+ * function versioning is disabled for Windows but shared libraries are allowed
+ * for Windows.
+ */
+#ifdef RTE_EXEC_ENV_WINDOWS
+#undef RTE_BUILD_SHARED_LIB
+#endif
+
 #ifdef RTE_BUILD_SHARED_LIB
 
 /*