[dpdk-dev,03/13] doc/bbdev: dynamic lib support

Message ID 20180426133008.12388-3-kamilx.chalupnik@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Pablo de Lara Guarch
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Kamil Chalupnik April 26, 2018, 1:29 p.m. UTC
  From: KamilX Chalupnik <kamilx.chalupnik@intel.com>

Added a note to enable building as a shared lib

Signed-off-by: Kamil Chalupnik <kamilx.chalupnik@intel.com>
Acked-by: Amr Mokhtar <amr.mokhtar@intel.com>
---
 doc/guides/bbdevs/turbo_sw.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Patch

diff --git a/doc/guides/bbdevs/turbo_sw.rst b/doc/guides/bbdevs/turbo_sw.rst
index 996b2a2..ffe6e36 100644
--- a/doc/guides/bbdevs/turbo_sw.rst
+++ b/doc/guides/bbdevs/turbo_sw.rst
@@ -96,6 +96,14 @@  The following instructions should be followed in this exact order:
         cd <path-to-workspace>/FlexRAN-1.4.0/SDK-R1.4.0/sdk/
         ./create-makefiles-linux.sh
 
+#. If build as a shared library is required, then add ``"-fPIC"`` option to file
+   ``<path-to-workspace>/FlexRAN-1.4.0/SDK-R1.4.0/sdk/cmake/intel-compile-options.cmake``
+   as follows:
+
+    .. code-block:: console
+
+        add_compile_options("-fPIC")
+
 #. A build folder is generated in this form ``build-<ISA>-<CC>``, enter that
    folder and install: