From ba953a53be25765e90603a00fd175419151b17b7 Mon Sep 17 00:00:00 2001 From: Deepak Kumar Mishra Date: Tue, 8 Jun 2021 00:50:14 +0530 Subject: [PATCH] README: Add documentation for -DBUILD_SHARED_LIBS Added a section in README to give details about use of -DBUILD_SHARED_LIBS cmake option and existing documentation reformatted to accommodate this. Signed-off-by: Deepak Kumar Mishra Cc: Qais Yousef Cc: dwarves@vger.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- README | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README b/README index 576cd42..c9f1737 100644 --- a/README +++ b/README @@ -6,8 +6,17 @@ Build instructions: 4. cmake -D__LIB=lib .. 5. make install -Default is to install to /usr/local, use -DCMAKE_INSTALL_PREFIX= -when invoking cmake to specify another install location. +cmake Options: + -DBUILD_SHARED_LIBS + By default SHARED libraries are created and applications are linked to it. + Use -DBUILD_SHARED_LIBS=OFF while invoking cmake to create STATIC libraries + and link applications to it. + + Ex. cmake -D__LIB=lib -DBUILD_SHARED_LIBS=OFF .. + + -DCMAKE_INSTALL_PREFIX + Default is to install to /usr/local, use -DCMAKE_INSTALL_PREFIX= + when invoking cmake to specify another install location. Known to work scenarios: