summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-30 14:48:10 +0200
committerDavid Sterba <dsterba@suse.cz>2014-09-02 17:05:23 +0200
commit1cb7bd2f3c1c26508af5ca3cace4826b5760ee81 (patch)
tree471416e0693b607b875213e53f5b68e5291bc702 /cmds-device.c
parentef208e98cea2918aedb78f182b24461b9a5c275f (diff)
downloadbtrfs-progs-1cb7bd2f3c1c26508af5ca3cace4826b5760ee81.tar.gz
btrfs-progs: Improve static building and installation
This commit improves the static-only building of btrfs-progs, and adds support for installing the static only tools: - It now ensures that all programs are built statically, not only a small subset of them, by defining 'progs_static' from the existing 'progs' variable. - It changes the order of libraries in the btrfs-%.static rule so that -lpthread (part of STATIC_LIBS) appears *after* the '$($(subst -,_,$(subst .static,,$@)-libs))' logic, which brings in -lcom_err. This is needed because libcom_err.a uses the semaphore functions, which are available in the pthread library. - Adds the necessary rules to generate the btrfsck.static link and btrfstune.static binary. - Adds an 'install-static' target to install the static binaries. Note that they are renamed to not carry a '.static' suffix. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-device.c')
0 files changed, 0 insertions, 0 deletions