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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ship statically linked binaries? #399

Open
vitoopened this issue Apr 5, 2023 · 1 comment
Open

Ship statically linked binaries? #399

vitoopened this issue Apr 5, 2023 · 1 comment
Labels
improvement New feature or request

Comments

@vito
Copy link
Contributor

vito commented Apr 5, 2023

This might be difficult, since I'm not sure how the internals work with V8 and all that jazz.

In short, I can't use the binaries shipped in the GitHub releases because they link tolibstdc++.so.6.I'm trying to runbudin a container built with Nix, which doesn't have these dependencies installed to the typical locations. In general, a statically linked binary is much more portable.

SettingCGO_ENABLED=0is usually enough, but there are corner cases.

Thanks, and hope you're doing well!

@matthewmueller
Copy link
Contributor

matthewmueller commented Apr 6, 2023

Hey Alex, nice to hear from you!

I didn't realize the V8 build included dynamic libraries. We should definitely make this optional, though I think this would be difficult right now while bud is still tied to Svelte + V8 (w/ CGO).

I'm currently working on making the views more pluggable. I'd also like to adjust Svelte to usehttps://github /livebud/js,which abstracts over V8 and Goja, both of which work with Svelte's SSR renderer.

I was planning to do this swap once I pried Svelte out of core, but it should also be possible today by refactoring the current Svelte package.

@matthewmueller matthewmueller added the improvement New feature or request label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants