-
Notifications
You must be signed in to change notification settings - Fork 40
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
Build native extensions as static libraries #50
Comments
Here's some info that may prove useful. My build complains when I run the Here are the relevant RbConfig variables:
require "fileutils"
FileUtils.cp(
File.join(
RbConfig::CONFIG["libdir"],
RbConfig::CONFIG["LIBRUBY_ALIASES"].split(" ").first
),
File.join(FileUtils.pwd, "target/debug/deps")
) If the build is failing for people otherwise you can do the same copy as above but change it to target release dependencies For those who want to use the command line to get the path for the libruby file you can use the following.
|
@seven1m checkout malept/thermite#41 |
Still doesn't work on Windows. I'd need help with that. |
RbConfig::CONFIG
provides all the required information for linking with static libraries. But Cargo does not allow to use all the flags, for example-framework CoreFoundation
on Mac OS X.Investigate thermite +
RbConfig::CONFIG
+ gcc as a final (optional) step while building an extension.This allows to use MRI without
--enable-shared
option (emk/heroku-buildpack-rust#15)The text was updated successfully, but these errors were encountered: