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

Include libruby.a and libruby-static.a #142

Closed
ianks opened this issue Jan 19, 2021 · 3 comments
Closed

Include libruby.a and libruby-static.a #142

ianks opened this issue Jan 19, 2021 · 3 comments

Comments

@ianks
Copy link

ianks commented Jan 19, 2021

I have a gem that that needs to have libruby.a and libruby-static.a to precompile a static binary. Unfortunately, it does not seem that this is available by default with the current build. Not sure the best way to do this, but it would be nice to have both the dylib and static lib available for building extensions if possible 😄

@eregon
Copy link
Member

eregon commented Jan 19, 2021

Which gem is it? Is there a reason the shared libruby cannot be used?

--enable-shared is used since #43.
I'm not sure we can have both, what ./configure flags would be needed?

Also, there is the concern that this would significantly increase the download size.

@ianks
Copy link
Author

ianks commented Jan 20, 2021

maybe we could have another build like 2.7-static or something? in this case, i want to precompile rust binaries so users don’t have to have rustc/ cargo installed.

@eregon
Copy link
Member

eregon commented Jan 20, 2021

I'm not willing to double the numbers of builds, it's already many and takes a while.
Could you simply build Ruby in your CI if you have such specific needs?
Also when embedding Ruby you might also want other flags, etc.
It's not hard to build Ruby really (https://github.com/ruby/ruby#readme, basically ./configure --prefix=...; make; make install), especially Ruby >= 2.4 which doesn't need an old OpenSSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants