Skip to content

Commit 10f4be4

Browse files
committed
try more paths
1 parent 296177f commit 10f4be4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

build.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,20 @@ const WITH_LIBXML: &str = "OFF";
3131
const WITH_EXPAT: &str = "ON";
3232

3333
/// Linux targets
34-
const LINUX_INCLUDE_PATHS: &[&str] = &["/usr/include/sbml", "/usr/include/libxml2"];
35-
const LINUX_LINK_PATHS: &[&str] = &["/usr/lib", "/usr/lib/x86_64-linux-gnu"];
36-
const LINUX_LINK_LIBS: &[&str] = &["sbml", "xml2"];
34+
/// Linux targets
35+
const LINUX_INCLUDE_PATHS: &[&str] = &[
36+
"/usr/include/sbml",
37+
"/usr/include/libxml2",
38+
"/usr/include",
39+
"/usr/local/include",
40+
];
41+
const LINUX_LINK_PATHS: &[&str] = &[
42+
"/usr/lib",
43+
"/usr/lib/x86_64-linux-gnu",
44+
"/usr/local/lib",
45+
"/usr/local/lib/x86_64-linux-gnu",
46+
];
47+
const LINUX_LINK_LIBS: &[&str] = &["sbml", "xml2", "bz2", "z", "expat"];
3748

3849
/// Main build script function that orchestrates the build process
3950
///

0 commit comments

Comments
 (0)