Skip to content

Support for musl libc  #722

@augustobmoura

Description

@augustobmoura

Currently, node-build is downloading the generic glibc binary for Linux independently of which libc the system uses. This is a problem in systems that use musl libc (Alpine, for example).

Node.js provides experimental pre-compiled binaries for musl, aside from being able to be built from source with musl. We should at least compile from source when the libc present is different from glibc, and optionally provide the download of the pre-compiled binaries from the unofficial builds.

I suggest modifying the platform function to append -musl to the system arch when in a distro using musl libc. I will work on a PR for it.

Related to asdf-vm/asdf-nodejs#190

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions