X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=INSTALL;h=819b92ea8bc057470abd6e2d19df8aa374c56d0b;hb=ea0956bb2a26ca0deb1bcba186a0e53ab07164a5;hp=85a839f11ae4cd50855349b518116df2464fe382;hpb=59cc65a4e693fcb2ea868f97e89908fdf27bd713;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/INSTALL b/INSTALL index 85a839f..819b92e 100644 --- a/INSTALL +++ b/INSTALL @@ -7,10 +7,12 @@ The Btrfs utility programs require the following libraries/tools to build: - libblkid - block device id library - liblzo2 - LZO data compression library - zlib - ZLIB data compression library +- libzstd - ZSTD data compression library version >= 1.0.0 For the btrfs-convert utility: - e2fsprogs - ext2/ext3/ext4 file system libraries, or called e2fslibs +- libreiserfscore - reiserfs file system library version >= 3.6.27 Generating documentation: @@ -31,26 +33,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 +63,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.