diff --git a/rav1e-0.1.0-build_nasm_debug.patch b/rav1e-0.1.0-build_nasm_debug.patch new file mode 100644 index 0000000..b3a4c4b --- /dev/null +++ b/rav1e-0.1.0-build_nasm_debug.patch @@ -0,0 +1,13 @@ +Index: rav1e-0.1.0/build.rs +=================================================================== +--- rav1e-0.1.0.orig/build.rs 2019-11-09 06:20:33.000000000 +0100 ++++ rav1e-0.1.0/build.rs 2019-12-09 23:45:33.367254150 +0100 +@@ -56,7 +56,7 @@ fn build_nasm_files() { + "src/x86/cdef.asm", + "src/x86/tables.asm", + ], +- &[&config_include_arg, "-Isrc/"], ++ &[&config_include_arg, "-Isrc/", "-g", "-Fdwarf"], + ); + println!("cargo:rustc-link-lib=static=rav1easm"); + rerun_dir("src/x86"); diff --git a/rav1e.changes b/rav1e.changes index 67ce6e7..0875ca3 100644 --- a/rav1e.changes +++ b/rav1e.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 9 22:54:35 UTC 2019 - Andreas Schneider + +- Build assembler files with dwarf debug symbols +- Added rav1e-0.1.0-build_nasm_debug.patch + ------------------------------------------------------------------- Thu Dec 5 09:31:43 UTC 2019 - Andreas Schneider diff --git a/rav1e.spec b/rav1e.spec index a925e89..393af46 100644 --- a/rav1e.spec +++ b/rav1e.spec @@ -28,6 +28,8 @@ URL: https://github.com/xiph/rav1e Source0: https://github.com/xiph/rav1e/archive/%{version}/%{name}-%{version}.tar.gz Source1: vendor.tar.xz # +Patch0: rav1e-0.1.0-build_nasm_debug.patch +# BuildRequires: cargo-c BuildRequires: nasm BuildRequires: rust-packaging