aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-02-09 15:49:16 -0800
committerSteven Fackler <[email protected]>2014-02-09 15:49:16 -0800
commit360fa1f04b575b2070f46611d9db3a852ab4a9d5 (patch)
tree7e9cc4f2453e8be6ecc5939ce88e303b2953163c
parentMerge pull request #5 from zr40/sync-crate (diff)
downloadrust-openssl-360fa1f04b575b2070f46611d9db3a852ab4a9d5.tar.xz
rust-openssl-360fa1f04b575b2070f46611d9db3a852ab4a9d5.zip
Build static and dynamic libs
-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;