graydon/rust — Issue #1303: Add #[link_type="object"] to link against object files
Author: erickt
Created: 2011-12-14 21:13:46+00:00
State: open

I need to write some wrapper functions in C for my zeromq bindings. It seems a bit heavyweight to create a shared library just to link these functions in, so I'm cheating and putting my .o files in the link_args for the zmq native mod. I'd rather put these functions in their own module rustzmq and just label it with #[link_type="object"], and have rustc automatically link against rustzmq.o.