1diff --git a/src/lib.rs b/src/lib.rs
2index 638552fc..2b287785 100644
3--- a/src/lib.rs
4+++ b/src/lib.rs
5@@ -5,6 +5,10 @@
6 //   Machine (which is a ZST + Copy type), which can only by created unsafely or safely
7 //   through feature detection (e.g. fn AVX2::try_get() -> Option<Machine>).
8
9+// ANDROID: Use std to allow building as a dylib.
10+#[cfg(android_dylib)]
11+extern crate std;
12+
13 mod soft;
14 mod types;
15 pub use self::types::*;
16