summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKarel Zak2018-07-24 12:35:45 +0200
committerKarel Zak2018-07-24 12:35:45 +0200
commite236f61d7cb030c624408a1e28da56bc5a247a42 (patch)
tree55059d0ccd72ec56adcdf74257d4e91ce446d886 /Documentation
parentcfdisk: fix compiler warnings [-Wcast-qual] (diff)
downloadkernel-qcow2-util-linux-e236f61d7cb030c624408a1e28da56bc5a247a42.tar.gz
kernel-qcow2-util-linux-e236f61d7cb030c624408a1e28da56bc5a247a42.tar.xz
kernel-qcow2-util-linux-e236f61d7cb030c624408a1e28da56bc5a247a42.zip
docs: add note about --disable-all-programs
Addresses: https://github.com/karelzak/util-linux/issues/666 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/howto-compilation.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/howto-compilation.txt b/Documentation/howto-compilation.txt
index 4b392461d..5ae331096 100644
--- a/Documentation/howto-compilation.txt
+++ b/Documentation/howto-compilation.txt
@@ -36,6 +36,25 @@ Compiling
FIXME: add notes about klib and uClib.
+
+Compile certain portion
+
+ See ./configure --help and use --disable-* and --enable-* options.
+
+ It's also possible to disable all the programs and enable only wanted.
+ For example:
+
+ ./configure --disable-all-programs --enable-fallocate
+
+ Note that the configure script tracks dependencies between libs and
+ tools. Always see warning messages and follow error messages if any
+ dependence is necessary. For example to compile mount(8) you need also
+ libmount, libblkid and libuuid:
+
+ ./configure --disable-all-programs --enable-mount --enable-libmount \
+ --enable-libblkid --enable-libuuid
+
+
Static linking
Use --enable-static-programs[=LIST] configure option when