diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-02-22 11:26:22 +0200 |
---|---|---|
committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-04-26 16:39:22 +0300 |
commit | ecd7ee0bb26c96b3f7fc3fed4d377f2c192f80b0 (patch) | |
tree | 225e4ac328747bfe627aa7de629af361dbada414 /INSTALL | |
parent | 4b93ba494c108a1ab73c261bb22e25d72750b09d (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-- | INSTALL | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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: ---------------- |