#visibility #merge #static #hide #tool #generate #control #libraries

app armerge

Tool to merge and control visibility of static libraries

16 stable releases

1.3.2 Nov 18, 2021
1.3.1 Jun 28, 2021
1.2.2 May 12, 2021
1.2.1 Apr 28, 2021
1.1.8 Sep 22, 2020

#19 in Build Utils

Download history 20/week @ 2021-08-10 1/week @ 2021-08-24 1/week @ 2021-09-07 3/week @ 2021-09-14 15/week @ 2021-09-21 1/week @ 2021-09-28 16/week @ 2021-10-05 5/week @ 2021-10-12 2/week @ 2021-10-19 2/week @ 2021-10-26 3/week @ 2021-11-02 21/week @ 2021-11-09 25/week @ 2021-11-16 21/week @ 2021-11-23

70 downloads per month

MIT/Apache

26KB
679 lines

armerge

You can use armerge to combine multiple static libraries into a single merged ar archive.
Optionally, it is possible to generate a static archive containing a single merged object file, where all non-public symbols are localized (hidden).

This tool requires ranlib, ld, and llvm-objcopy installed on your host system.
On macOS, just libtool and ld are used instead.
You may specify a different linker using the LD environment variable, and a different objcopy implementation with OBJCOPY.

USAGE:
    armerge [FLAGS] [OPTIONS] --output <output> [--] [INPUTS]...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Print verbose information

OPTIONS:
    -k, --keep-symbols <keep-symbols>...    Accepts regexes of the symbol names to keep global, and localizes the rest
    -o, --output <output>                   Output static library

ARGS:
    <INPUTS>...    Static libraries to merge

Dependencies

~7.5MB
~156K SLoC

Owa