btrfs-progs: fix error checking in load_device_info
[platform/upstream/btrfs-progs.git] / INSTALL
diff --git a/INSTALL b/INSTALL
index 9c33c34..85a839f 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -24,6 +24,10 @@ XATTR library should be provided by the standard C library or by
 Please note that the package names may differ according to the distribution.
 See https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#Dependencies .
 
+
+Building from sources
+---------------------
+
 To build from git sources you need to generate the configure script using the
 autotools:
 
@@ -42,7 +46,34 @@ Specific CFLAGS or LDFLAGS should be set like
 
  $ CFLAGS=... LDFLAGS=... ./configure --prefix=/usr
 
-and not as arguments to make.
+and not as arguments to make. You can specify additional flags to build via
+variables EXTRA_CFLAGS and EXTRA_LDFLAGS that get appended to the predefined
+values of the respective variables.
+
+ $ make EXTRA_CFLAGS=-ggdb3
+
+The build utilizes autotools, dependencies for generating the configure
+scripts are:
+
+* autconf, autoheader
+* automake, aclocal
+* pkg-config
+
+
+Staticly built binaries
+-----------------------
+
+The makefiles are ready to let you build static binaries of the utilities. This
+may be handy in rescue environments. Your system has to provide static version
+of the libraries.
+
+$ make static
+$ make btrfs.static
+$ make btrfs-convert.static
+
+The resulting static binaries have the '.static' suffix, the intermediate object
+files do not conflict with the normal (dynamic) build.
+
 
 References:
 * https://btrfs.wiki.kernel.org