aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-02-22 11:26:22 +0200
committerSakari Ailus <sakari.ailus@linux.intel.com>2018-04-26 16:39:22 +0300
commitecd7ee0bb26c96b3f7fc3fed4d377f2c192f80b0 (patch)
tree225e4ac328747bfe627aa7de629af361dbada414 /INSTALL
parent4b93ba494c108a1ab73c261bb22e25d72750b09d (diff)
Add instructions for building static binaries
Static binaries are useful e.g. when copying test binaries to other systems. Document how to build them. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL16
1 files changed, 16 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 765fa26c..8c98a768 100644
--- a/INSTALL
+++ b/INSTALL
@@ -53,6 +53,22 @@ export PKG_CONFIG_LIBDIR=/path/to/cross/root/lib
./configure --host=arm-linux-gnueabihf --without-jpeg
make
+Building static binaries:
+-------------------------
+
+Fully static binares can be built by setting LDFLAGS for the configure and
+using an option for disabling shared libraries:
+
+ $ LDFLAGS="--static -static" ./configure --disable-shared
+
+Note that this requires static variants of all the libraries needed for
+linking which may not be available in all systems.
+
+In order to build binaries that are not dependent on libraries contained
+in v4l-utils, simply use the --disable-shared option:
+
+ $ ./configure --disable-shared
+
Android Cross Compiling and Installing:
----------------

Privacy Policy