vzlogger
vzlogger copied to clipboard
static compile
Hi,
is there an easy way to do a static compile, I like how mbmd has only one binary...
VR, Alex
i already did research on this, here: https://github.com/volkszaehler/vzlogger/pull/486#issuecomment-819197746
the issues encountered are:
- linking glibc statically is problematic because the resolver is dynamically loaded even then?
- glibc can be replaced with a smaller libc that supports static linking (after https://github.com/volkszaehler/vzlogger/pull/470 )
- but vzlogger is a C++ project, libstdc++ depends on glibc, libstdc++ does not support static linking => we need a replacement libstdc++, not familiar with that.
ah, thx for the comment, I saw it but thought your intention was to minimize the file size of the docker container... (I have to admit I didnt went through all the posts)