Skip to content

Commit 9251a1a

Browse files
kornelskitilpner
authored andcommitted
Fix static linking errors caused by auto-enabled unsupported libraries
1 parent 932ba5c commit 9251a1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sys/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ fn build() -> io::Result<()> {
177177

178178
configure.arg("--enable-pic");
179179

180+
// stop autodetected libraries enabling themselves, causing linking errors
181+
configure.arg("--disable-autodetect");
182+
180183
// do not build programs since we don't need them
181184
configure.arg("--disable-programs");
182185

0 commit comments

Comments
 (0)