Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External nanomsg fixes #238

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

zboszor
Copy link

@zboszor zboszor commented Feb 8, 2024

No description provided.

This allows building for NodeJS 20

Signed-off-by: Zoltán Böszörményi <[email protected]>
The pkg-config file name in nanomsg 0.9 was changed from libnanomsg.pc
to nanomsg.pc. nanomsg 0.9 was released in May 2016.

Signed-off-by: Zoltán Böszörményi <[email protected]>
nanomsg headers are installed in /usr/include/nanomsg but only
ancient versions (0.8 and before) provided -I/usr/include/nanomsg
in libnanomsg.pc, if ever. The embedded source is for 1.1.0, the
previous commit stopped using libnanomsg.pc.

Instead, pass -DSYSTEM_NANOMSG=1 to the compiler when using
--use_system_libnanomsg=true and use conditional compiling to
include headers from the correct location.

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
This version also supports NodeJS 21 and 22.

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
The solution was copied from "nan".

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant