lumo 2019-04-18

I was checking how to compile lumo statically and I bumped into this commit that @grav made against a lumo fork https://github.com/grav/lumo/commit/78d04752231f362b34c368be008b5240a25b7797

Has there been some talk already around adding it to lumo proper?

The problem I am trying to solve is that the latest lumo need a higher version on some dynamic libraries that the AWS lambda runtime does not support

@richiardiandrea yes, lumo has been statically compiled before

but it’s just not feasible

otherwise native modules don’t work

Oh ok that's why

they only work if you compile them against the musl version that was statically linked in

By native modules you mean util, fs, or npm modules that are compiled to native?

.node modules

native “extensions” or whatever they’re called

perhaps we could add a statically compiled Lumo to the build matrix

Yeah that would be awesome because the AWS runtime use case is so attractive

I’m not gonna do it but feel free to send a PR

And at the moment I am using Grav's binary

Ok sounds great

it should really just be a matter of adding that flag conditionally on an env variable or something

Yep I think that should an easy one