From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- storage/maria/libmarias3/docs/api/compiling.rst | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 storage/maria/libmarias3/docs/api/compiling.rst (limited to 'storage/maria/libmarias3/docs/api/compiling.rst') diff --git a/storage/maria/libmarias3/docs/api/compiling.rst b/storage/maria/libmarias3/docs/api/compiling.rst new file mode 100644 index 00000000..99930a4c --- /dev/null +++ b/storage/maria/libmarias3/docs/api/compiling.rst @@ -0,0 +1,37 @@ +Compiling Your Application +========================== + +Include Files +------------- + +Make sure that your application includes the main libMariaS3 include as follows: + +.. code-block:: c + + #include + +This will pull in all the libMariaS3 functions and constants you may require for your application. + +Package Config +-------------- + +libMaria3e includes a utility called ``libmarias3-config``. This can give you all the options used to compile the library as well as the compiler options to link the library. For a full list of what it providesrun: + +.. code-block:: bash + + libmarias3-config --help + +Compiling +--------- + +If the library is installed correctly in your Linux distribution compiling your application with libMariaS3 should be a simple matter of adding the library to link to as follows: + +.. code-block:: bash + + gcc -o basic basic.c -lmarias3 + +And likewise for CLang: + +.. code-block:: bash + + clang -o basic basic.c -lmarias3 -- cgit v1.2.3