aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in4
-rw-r--r--lib.rs3
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index fc694754..fda88260 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,10 +1,10 @@
RUSTC = rustc
BUILDDIR = build
-RUSTFLAGS = -O -Z debug-info
+RUSTFLAGS = -O -Z extra-debug-info --cfg ndebug
INSTALL_DIR = %PREFIX%
OPENSSL_LIB = lib.rs
-OPENSSL = $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB))
+OPENSSL = $(foreach file,$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
OPENSSL_TEST = $(BUILDDIR)/$(shell $(RUSTC) --test --crate-file-name $(OPENSSL_LIB))
all: $(OPENSSL)
diff --git a/lib.rs b/lib.rs
index e654b32c..0be3edf2 100644
--- a/lib.rs
+++ b/lib.rs
@@ -1,6 +1,7 @@
#[feature(struct_variant, macro_rules)];
#[crate_id="github.com/sfackler/rust-openssl#openssl:0.0"];
-#[crate_type="lib"];
+#[crate_type="rlib"];
+#[crate_type="dylib"];
#[doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")];
extern mod extra;