diff options
author | David Sterba <dsterba@suse.com> | 2016-11-10 18:31:53 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 11:07:05 +0100 |
commit | d8f93ce802c31dde2b936d0626b636dc070e118b (patch) | |
tree | ea9b151c434a5646c5487fbb4ad7e55e312acf09 /INSTALL | |
parent | 776cd164b73092ec559a47080ff44aa22bad97a1 (diff) |
btrfs-progs: Update README and other docs
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -31,26 +31,27 @@ Building from sources To build from git sources you need to generate the configure script using the autotools: - $ ./autogen.sh + $ ./autogen.sh To build from the released tarballs: - $ ./configure - $ make - $ make install + $ ./configure + $ make + $ make install You may disable building some parts like documentation, btrfs-convert or backtrace support. See ./configure --help for more. Specific CFLAGS or LDFLAGS should be set like - $ CFLAGS=... LDFLAGS=... ./configure --prefix=/usr + $ CFLAGS=... LDFLAGS=... ./configure --prefix=/usr 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. +values of the respective variables. There are further build tuning options +documented in the Makefile. - $ make EXTRA_CFLAGS=-ggdb3 + $ make EXTRA_CFLAGS=-ggdb3 The build utilizes autotools, dependencies for generating the configure scripts are: @@ -60,18 +61,18 @@ scripts are: * pkg-config -Staticly built binaries ------------------------ +Statically 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 + $ make static + $ make btrfs.static + $ make btrfs-convert.static -The resulting static binaries have the '.static' suffix, the intermediate object +The resulting binaries have the '.static' suffix, the intermediate object files do not conflict with the normal (dynamic) build. |