-
Notifications
You must be signed in to change notification settings - Fork 14
setting $RUBY_STATIC doesn't seem to generate a statically linked library #32
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
Comments
Try this PR? #31 |
I just now tried both #31 and #25, being sure to do a [patch.crates-io]
ruby-sys = { git = "http://github.com/steveklabnik/ruby-sys", branch = "fix/static_build" } |
Maybe the patch wasn't working... I tried setting it to use the first revision of this git repository which would absolutely fail to compile, and it compiled just fine again. |
It might be because I haven't done this in a while, but this is what I had to do to replace |
Ok, so the problem with |
It looks like the It would be nice if #31 could get merged. |
Thanks for the help! |
Yeah, the
since the target branch has |
You may want to consider overriding the |
Uh oh!
There was an error while loading. Please reload this page.
if I do
echo $RUBY_STATIC
in my environment, I get back1
, so the env var is set, butruby-sys
is still trying to link againstlibruby.so
.ldd target/release/mylib.so
shows the dynamic link tolibruby.so
, so I tried moving the dynamic library somewhere that it won't be on the path and rebuilding. Now, Rust complains that/usr/bin/ld: cannot find -lruby
, which just shows what I thought was happening.Looking at the build script, it seems to support the notion of linking against the Ruby library statically, but it doesn't seem to do that. Is this a working thing?
I'm on 64-bit Fedora 27.
The text was updated successfully, but these errors were encountered: