From cdc09a6d8a771fc9ebf22e4c6c3b3799a495f2a3 Mon Sep 17 00:00:00 2001 From: arkpar Date: Wed, 8 Feb 2017 22:43:23 +0100 Subject: [PATCH] Static link for snappy --- util/src/snappy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/src/snappy.rs b/util/src/snappy.rs index df532259a..4901e9d9e 100644 --- a/util/src/snappy.rs +++ b/util/src/snappy.rs @@ -23,7 +23,7 @@ const SNAPPY_OK: c_int = 0; const SNAPPY_INVALID_INPUT: c_int = 1; const SNAPPY_BUFFER_TOO_SMALL: c_int = 2; -#[link(name = "snappy")] +#[link(name = "snappy", kind = "static")] extern { fn snappy_compress( input: *const c_char, @@ -154,4 +154,4 @@ pub fn decompress_into(input: &[u8], output: &mut Vec) -> Result bool { let status = unsafe { snappy_validate_compressed_buffer(input.as_ptr() as *const c_char, input.len() as size_t )}; status == SNAPPY_OK -} \ No newline at end of file +}