Page MenuHomeFreeBSD

www/node: add SHARED option to build and install libnode.so
Needs ReviewPublic

Authored by bhughes on Sep 14 2020, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 19 2024, 4:34 AM
Unknown Object (File)
Mar 19 2024, 2:42 AM
Unknown Object (File)
Nov 30 2023, 10:12 PM
Unknown Object (File)
Nov 12 2023, 9:36 AM
Unknown Object (File)
Nov 9 2023, 8:27 PM
Unknown Object (File)
Nov 9 2023, 8:23 PM
Unknown Object (File)
Oct 22 2023, 3:55 AM
Unknown Object (File)
Oct 20 2023, 8:48 AM
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

The SHARED option will pass the --shared argument to the configure
script, which will cause the build to produce both the node binary and
the libnode.so shared library. Take cues from other packagers (Fedora,
for example) and patch tools/install.py to install both. The
tools/install.py script installs libnode.so with a version suffix equal
to the NODE_MODULE_VERSION defined in src/node_version.h, so the port will
create the libnode.so.## -> libnode.so symlink in the post-install target.

This feature has been requested a couple of times, and it makes sense
to enable it by default.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 33548
Build 30805: arc lint + arc unit