From 97aebf8089ec963dd34250321ff000f93c9dd252 Mon Sep 17 00:00:00 2001 From: Paul Jakob Schroeder Date: Tue, 16 Nov 2021 12:49:19 -0500 Subject: [PATCH] Add extern crate declarations for lapack{-src} Without these declarations, `nalgebra-lapack` does not have runtime linkage requirements for these libraries, meaning that binaries and libraries using `nalgebra-lapack` have to link `lapack`/`lapack-src` explicitly which shouldn't be necessary. --- nalgebra-lapack/src/lib.rs | 3 +++ nalgebra-lapack/tests/lib.rs | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nalgebra-lapack/src/lib.rs b/nalgebra-lapack/src/lib.rs index 84fa03fa..9cf0d73d 100644 --- a/nalgebra-lapack/src/lib.rs +++ b/nalgebra-lapack/src/lib.rs @@ -73,6 +73,9 @@ html_root_url = "https://nalgebra.org/rustdoc" )] +extern crate lapack; +extern crate lapack_src; + extern crate nalgebra as na; extern crate num_traits as num; diff --git a/nalgebra-lapack/tests/lib.rs b/nalgebra-lapack/tests/lib.rs index 973b6d17..6bf16e30 100644 --- a/nalgebra-lapack/tests/lib.rs +++ b/nalgebra-lapack/tests/lib.rs @@ -6,9 +6,6 @@ compile_error!("Tests must be run with `proptest-support`"); extern crate nalgebra as na; extern crate nalgebra_lapack as nl; -extern crate lapack; -extern crate lapack_src; - mod linalg; #[path = "../../tests/proptest/mod.rs"] mod proptest;