-
Notifications
You must be signed in to change notification settings - Fork 285
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
Compile static index.node #360
Comments
Hi! Compiling neon statically is not something that would be easy to accomplish because of linking into the various libraries. Also, Since you are compiling for lambda, can I recommend building in docker? There is a docker image for compiling code to run in lambda that has matching library versions. This is a common problem and not limited to |
I'm having a related issue I suspect. I'm trying to use a library with a fairly complex dependency chain from a Neon module. Here's my build.rs: https://gitlab.com/ndarilek/spatialite-sys/blob/master/build.rs You can see there that I link to all my native dependencies with the form:
Does this mean I shouldn't use If I do in fact need to use Thanks. |
Unfortunately, this isn't currently possible. This thread provides a few workarounds. |
When i try to change Cargo.toml to
I getting this error
but then how to compile index.node as static so all dependencies like glibc linked into index.node?
The problem is that when I run my custom module on AWS Lambda function it complains that
on AMI, which execute my lambda function, installed 2.17 version of GLIBC
So this is super inconvenient to create custom build toolchain for Rust to complies with old glibc 2.17 in addition it may missing some other shared libraries which may require by my module. So I prefer to build static index.node which has everything linked with all dependencies in one file so I can run on the Linux server without relying on shared libraries. How to achieve this?
The text was updated successfully, but these errors were encountered: