sapir / gcc-rust

a (WIP) Rust frontend for gcc / a gcc backend for rustc
GNU General Public License v2.0
203 stars 5 forks source link

Bins and libs #12

Open sapir opened 4 years ago

sapir commented 4 years ago
bjorn3 commented 4 years ago

-shared should give a cdylib. -c or something like that should give an rlib (crate type lib, actually a renamed .a file) There are also staticlib (.a without rust metadata) and dylib (.so with rust metadata in the .rustc section)

sapir commented 4 years ago

-shared should give a cdylib.

oops, right

There are also staticlib (.a without rust metadata) and dylib (.so with rust metadata in the .rustc section)

I think it's ok not to support these at first.

sapir commented 4 years ago

std::rt::lang_start_internal, not being a template function, apparently requires linking with libstd