From abf60cdf31e3be8782e95361899abeea6847126d Mon Sep 17 00:00:00 2001 From: arkpar Date: Fri, 17 Feb 2017 14:29:23 +0100 Subject: [PATCH] Backported build fixes Former-commit-id: ae09deff35f009bd4d5d479ad1a4005acb56557e --- mac/Parity.pkgproj | 2 +- util/src/snappy.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mac/Parity.pkgproj b/mac/Parity.pkgproj index 916a541b2..df915fcaa 100755 --- a/mac/Parity.pkgproj +++ b/mac/Parity.pkgproj @@ -431,7 +431,7 @@ GID 0 PATH - ../target/release/deps/ethstore + ../target/release/ethstore PATH_TYPE 3 PERMISSIONS diff --git a/util/src/snappy.rs b/util/src/snappy.rs index 6919fb1ad..47b3d88f0 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 +}