diff --git a/src/ffi_avx2.rs b/src/ffi_avx2.rs index 33961e9d4..725239935 100644 --- a/src/ffi_avx2.rs +++ b/src/ffi_avx2.rs @@ -33,6 +33,7 @@ pub unsafe fn hash_many( } pub mod ffi { + #[link(name = "blake3_sse2_sse41_avx2_assembly", kind = "static")] extern "C" { pub fn blake3_hash_many_avx2( inputs: *const *const u8, diff --git a/src/ffi_avx512.rs b/src/ffi_avx512.rs index 884f48135..e24ba6e4c 100644 --- a/src/ffi_avx512.rs +++ b/src/ffi_avx512.rs @@ -61,6 +61,7 @@ pub unsafe fn hash_many( } pub mod ffi { + #[link(name = "blake3_avx512_assembly", kind = "static")] extern "C" { pub fn blake3_compress_in_place_avx512( cv: *mut u32, diff --git a/src/ffi_neon.rs b/src/ffi_neon.rs index 54d07a4de..5fd9ae91b 100644 --- a/src/ffi_neon.rs +++ b/src/ffi_neon.rs @@ -53,6 +53,7 @@ pub extern "C" fn blake3_compress_in_place_portable( } pub mod ffi { + #[link(name = "blake3_neon", kind = "static")] extern "C" { pub fn blake3_hash_many_neon( inputs: *const *const u8, diff --git a/src/ffi_sse2.rs b/src/ffi_sse2.rs index 1c5da81f9..638b666fd 100644 --- a/src/ffi_sse2.rs +++ b/src/ffi_sse2.rs @@ -61,6 +61,7 @@ pub unsafe fn hash_many( } pub mod ffi { + #[link(name = "blake3_sse2_sse41_avx2_assembly", kind = "static")] extern "C" { pub fn blake3_compress_in_place_sse2( cv: *mut u32, diff --git a/src/ffi_sse41.rs b/src/ffi_sse41.rs index 62989c5ec..4db9de647 100644 --- a/src/ffi_sse41.rs +++ b/src/ffi_sse41.rs @@ -61,6 +61,7 @@ pub unsafe fn hash_many( } pub mod ffi { + #[link(name = "blake3_sse2_sse41_avx2_assembly", kind = "static")] extern "C" { pub fn blake3_compress_in_place_sse41( cv: *mut u32,