-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binaries
Description
// This tries to link to a library called foo
extern mod foo { }
I believe that I override the automatic linkage more often than not, sometimes even inserting bogus extern mods just to have a place to stuff linker arguments
#[nolink]
#[link_args = "-lwhatever"]
extern mod foo { }
Perhaps we can remove the automatic linking behavior and replace it with a richer set of linker attributes that can be specified either on extern mods or the crate as appropriate. There are quite a lot of bindings out there now, so we can look through them for use cases.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binaries