diff --git a/src/linkhack.rs b/src/linkhack.rs index cd19cabc3..4e74e7d87 100644 --- a/src/linkhack.rs +++ b/src/linkhack.rs @@ -7,14 +7,12 @@ #[cfg(target_os = "linux")] #[link(name = "pthread")] #[link(name = "js_static", kind = "static")] -#[link(name = "mozglue", kind = "static")] #[link(name = "stdc++")] #[link(name = "z")] extern { } #[cfg(target_os = "macos")] #[link(name = "js_static", kind = "static")] -#[link(name = "mozglue", kind = "static")] #[link(name = "stdc++")] #[link(name = "z")] extern { } diff --git a/src/rust.rs b/src/rust.rs index cad361cfb..64563197e 100644 --- a/src/rust.rs +++ b/src/rust.rs @@ -728,9 +728,11 @@ pub unsafe extern fn reportError(_cx: *mut JSContext, msg: *const c_char, report #[cfg(test)] pub mod test { use super::Runtime; + use jsapi::JS_Init; #[test] pub fn dummy() { + unsafe { assert_eq!(JS_Init(), 1); } let _rt = Runtime::new(); }