From 11247e27c603d368bb45b0b8450dc96cacf71879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Wed, 8 Jul 2020 21:17:53 +0100 Subject: [PATCH] Fix static linking errors caused by auto-enabled unsupported libraries --- ffmpeg-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg-sys/build.rs b/ffmpeg-sys/build.rs index 65796967..0d31ccd5 100644 --- a/ffmpeg-sys/build.rs +++ b/ffmpeg-sys/build.rs @@ -167,6 +167,9 @@ fn build() -> io::Result<()> { configure.arg("--enable-pic"); + // stop autodetected libraries enabling themselves, causing linking errors + configure.arg("--disable-autodetect"); + // do not build programs since we don't need them configure.arg("--disable-programs");