aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2019-01-22 14:29:32 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-24 09:34:18 +0100
commitb709e211c8581b0cc57b877c3695ce1068a40ce7 (patch)
tree9179008b665bbbf5ce21c7c6619fef9da77f34f7 /INSTALL
parent4a5e271ec3c4f382bee0f1a6c39b72137922222a (diff)
Fix static build instructions
Commit 5d0be9455254 updated the static build instructions but failed to properly elaborate the use of PKG_CONFIG and LDFLAGS environment variables as their effects. Do that now. Fixes: 5d0be9455254 ("Update static build instructions") Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL23
1 files changed, 16 insertions, 7 deletions
diff --git a/INSTALL b/INSTALL
index b7546aa6..099c968c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -56,17 +56,26 @@ make
Building static binaries:
-------------------------
-Fully static binares can be built by setting LDFLAGS for the configure and
-using an option for disabling shared libraries:
+There are two options in building static binaries: either fully static or
+dynamically linking to system shared libraries while statically linking
+libraries that are a part of v4l-utils.
- $ 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. Then run the configure
-script as follows:
+In either case, building static binaries requires telling pkg-config the
+static libraries will be needed, and telling configure to disable building
+of shared libraries. This way system libraries will still be linked
+dynamically:
$ PKG_CONFIG="pkg-config --static" ./configure --disable-shared
+Fully static binares can be built by further setting LDFLAGS for the
+configure:
+
+ $ PKG_CONFIG="pkg-config --static" 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.
+
Android Cross Compiling and Installing:
----------------

Privacy Policy