summarylogtreecommitdiffstats
path: root/linking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linking.patch')
-rw-r--r--linking.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/linking.patch b/linking.patch
new file mode 100644
index 000000000000..e20a2561b289
--- /dev/null
+++ b/linking.patch
@@ -0,0 +1,31 @@
+--- a/build.rs
++++ b/build.rs
+@@ -66,13 +66,6 @@ fn main() {
+ }
+ }
+
+- println!("cargo:rerun-if-changed=lib/error.h");
+- println!("cargo:rerun-if-changed=lib/error.c");
+- println!("cargo:rerun-if-changed=lib/log.h");
+- println!("cargo:rerun-if-changed=lib/log.c");
+- cc::Build::new().file("lib/error.c").compile("error");
+- cc::Build::new().file("lib/log.c").compile("log");
+-
+ println!("cargo:rerun-if-changed=lib/encode_video.c");
+ let mut cc_video = cc::Build::new();
+ cc_video.file("lib/encode_video.c");
+@@ -90,6 +83,14 @@ fn main() {
+ cc_video.define("HAS_MEDIAFOUNDATION", None);
+ }
+ cc_video.compile("video");
++
++ println!("cargo:rerun-if-changed=lib/error.h");
++ println!("cargo:rerun-if-changed=lib/error.c");
++ println!("cargo:rerun-if-changed=lib/log.h");
++ println!("cargo:rerun-if-changed=lib/log.c");
++ cc::Build::new().file("lib/error.c").compile("error");
++ cc::Build::new().file("lib/log.c").compile("log");
++
+ let ffmpeg_link_kind =
+ // https://github.com/rust-lang/rust/pull/72785
+ // https://users.rust-lang.org/t/linking-on-windows-without-wholearchive/49846/3