0.4.1 • Published 2 years ago

node-musl v0.4.1

Weekly downloads
21
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.4.0

2 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.2-beta6

7 years ago

0.2.2-beta5

7 years ago

0.2.2-beta4

7 years ago

0.2.2-beta3

7 years ago

0.2.2-beta2

7 years ago

0.2.2-beta

7 years ago

0.2.2-alpha

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago