vzlogger icon indicating copy to clipboard operation
vzlogger copied to clipboard

static compile

Open isarrider opened this issue 4 years ago • 2 comments

Hi,

is there an easy way to do a static compile, I like how mbmd has only one binary...

VR, Alex

isarrider avatar Jan 11 '22 12:01 isarrider

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.

r00t- avatar Feb 18 '22 21:02 r00t-

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)

isarrider avatar Feb 18 '22 21:02 isarrider