diff --git a/Makefile.in b/Makefile.in index 75d43fc..f08ab16 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,7 +9,7 @@ RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') all: libsharegl.dummy libsharegl.dummy: lib.rs $(RUST_SRC) - $(RUSTC) $(RUSTFLAGS) $< --crate-type=lib --out-dir . + $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@ sharegl-test: lib.rs $(RUST_SRC) diff --git a/lib.rs b/lib.rs index f5a4147..54eec80 100644 --- a/lib.rs +++ b/lib.rs @@ -8,6 +8,9 @@ // except according to those terms. #[crate_id = "github.com/mozilla-servo/sharegl#0.1"]; +#[crate_type = "lib"]; +#[crate_type = "dylib"]; +#[crate_type = "rlib"]; extern crate std; extern crate sync;