-
Notifications
You must be signed in to change notification settings - Fork 22
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
Libraries are being linked dynamically #232
Comments
Is it? Is there a particular problem you're solving? |
Yes, it links rust libraries statically, so I expect native libraries to link the same way by default. I would rather not require users to install libraries before using my program. |
Is there at least a way to opt into static linking? I've asked on IRC and everyone seems stumped. |
I suppose you could play with |
It looks like dynamic linking is the intended default so I will close this, but I do think static linking is ideal for end-user programs (which rgtk is certainly relevant for). |
For the record, linking GTK statically is discouraged and almost nobody does it. So if relying on a package manager is a problem, you should look into bundling the libraries. You could also make a |
Fair enough, I think that is a reasonable solution. On Tue, Mar 10, 2015 at 7:33 AM, Gleb Kozyrev notifications@github.com
|
Also if at some point you want this inside a SDK of Gnome with Alex work on xdg-app you need this library to be dinamically linked to gtk+ etc. |
While Rust is supposed to link libraries statically, it appears that rgtk programs use dynamic linking. When I compile the example projects and run
otool -L target/treeview
on OS X, I get the following:The text was updated successfully, but these errors were encountered: