Subject: Re: Single combined executable

From: Sergey Matveev <[email-masked]>
Date: Fri, 19 Sep 2025 17:02:31 +0300

*** Eugene Medvedev [2025-09-19 16:47]:
>That would greatly simplify getting it into Termux repo, too. Right now
>the 48Mb package I'm getting is a turnoff for them.

Well, that is the price of static linking and a quantity of executables.
Currently I got the following sizes:

    $ ./build
    $ stat -f "%z" bin/nncp
    18953978

    $ GO_LDFLAGS=-s ./build
    $ stat -f "%z" bin/nncp
    13304110

    $ GO_CFLAGS="-tags noyggdrasil" GO_LDFLAGS=-s ./build
    $ stat -f "%z" bin/nncp
    5779758

-- 
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A