minict icon indicating copy to clipboard operation
minict copied to clipboard

static binary?

Open pwFoo opened this issue 3 years ago • 2 comments
trafficstars

Hi,

is it possible to compile it as static binary?

/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lassuan
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lgpg-error

Searched about that error and found a glibc dependency, right? I try to compile with alpine linux / musl and would prefer a small binary build.

pwFoo avatar Jan 02 '22 12:01 pwFoo

Hi, could you try installing the gpgme-dev package? It might solve your issue, if not I'll try compiling it on Alpine myself today or tomorrow when I get the chance.

johnyrose avatar Jan 02 '22 16:01 johnyrose

gpgme-dev is installed:

/go/src/minict # cat /etc/apk/world 
alpine-baselayout
alpine-keys
apk-tools
build-base
busybox
ca-certificates
git
gpgme-dev
libc-utils
```

Haven't found the link again... That pointed to a problem with glibc dependency which isn't solved with musl?! But I don't any experience with that topic... static build still fails with alpine / musl.

pwFoo avatar Jan 08 '22 16:01 pwFoo