Skip to content

When node is build with --fully-static option, node cannot use c++ addon. #3600

Closed
@Darshanpd

Description

@Darshanpd

When node is compiled with --fully-static option. Node gives an error while using c++ addon as shown below,

Error: /sd/addon.node: undefined symbol: node_module_register

The issue is that even though node_module_register is present in the compiled node, since it is statically build dlopen() fails to load this symbol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.c++Issues and PRs that require attention from people who are familiar with C++.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions