Link static lib directly into .node, remove OSX hack.#6
Link static lib directly into .node, remove OSX hack.#6dherman merged 1 commit intoneon-bindings:masterfrom
Conversation
|
Interesting, I got this from the compiled > require('./build/Release/hello')
{ '\u0000\u0000\u0000\u0000\u0000': [Function] }
> for (var k in a) { a[k](); }
'hello node' |
|
@diorahman Yes, that's fixed by dherman/neon#22. |
|
@eddyb thanks! |
|
Turns out shared libs are not worth creating because |
|
FYI when I follow the example on FreeBSD 11 CURRENT December node 4.2.3 i get But when I follow the steps by @diorahman in #6 (comment) I get the same positive outcome with no error :) BTW Loving this cool stuff <3 |
|
@No9 It seems that @dherman did not update the crates.io version of neon - so you're not getting the fix at dherman/neon#22. If you replace the crates.io version dependency on |
|
Thanks @eddyb for your help After trying that update I seem to have walked into an unrelated issue FWIW I am running neon-cli linked not installed I'll try and come back to it at some stage and work out why |
|
Yeah, updating the deps, in the e.g. hello's |
|
@diorahman |
|
OK. Got this one: Do you have any ideas? Previously, in order to check the error, I then copied the |
|
@diorahman You're not using the latest version of this PR, maybe? I've switched from linking a dylib into the |
There was a problem hiding this comment.
Here I guess we can use:
"libraries": ["<(PRODUCT_DIR)/../../<(static_lib)"],
|
@eddyb thanks! Now everything works as expected! |
|
This is great. I'll follow up immediately with the one fix needed to make it work in OS X again. |
Link static lib directly into .node, remove OSX hack.
Should allow building on all architectures supported by Node.js and Rust.
Tested that it builds and loads fine on Linux.