0.4.1 • Published 6 months ago

node-musl v0.4.1

Weekly downloads
21
License
ISC
Repository
github
Last release
6 months ago

Node-Musl

Uses richfelker/musl-cross-make and node-gyp to create a statically linked musl GCC toolchain.

This toolchain can then be used to create properly statically linked binary for Linux. For example, a fully statically linked version of node can created using this toolchain.

Simple static node build example, assuming you already have another version of node installed.

cd node
make clean
npm i node-musl # takes a long time...
$(npm bin)/musl-env ./configure --fully-static # musl-env sets CC, CXX, LD
$(npm bin)/musl-env make -j$(node -p 'os.cpus().length + 1')
file ./out/Release/node
strip --strip-all ./out/Release/node

# eval "$("$(npm bin)/musl-exports")" # sets CC CXX and LD in the shell

Note: Using --fully-static (as shown above) will disable dlopen which prevents Node from loading any native modules.

Licence: This code is ISC, however note that musl-cross-make is imported into this repo. It is released under the MIT licence - whilst the artefacts it uses are under different licences.

0.4.1

6 months ago

0.4.0

6 months ago

0.3.1

3 years ago

0.3.0

4 years ago

0.2.2-beta6

5 years ago

0.2.2-beta5

5 years ago

0.2.2-beta4

5 years ago

0.2.2-beta3

6 years ago

0.2.2-beta2

6 years ago

0.2.2-beta

6 years ago

0.2.2-alpha

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago