From 219b6593209fda7d25dafb0151b73f2cf9b7eb5f Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Wed, 30 Dec 2020 13:38:46 +0100 Subject: [PATCH] deinterlace: force -DPREFIX on macos This is due to a bug in meson where it will not detect properly the compiler if the symbols need an undercore. https://github.com/mesonbuild/meson/issues/5482 Fixes #821 Part-of: --- gst/deinterlace/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/deinterlace/meson.build b/gst/deinterlace/meson.build index 4c747b7659..5eae029ebb 100644 --- a/gst/deinterlace/meson.build +++ b/gst/deinterlace/meson.build @@ -49,7 +49,12 @@ if have_nasm and host_cpu == 'x86_64' endif # Assembly has to be told when the symbols have to be prefixed with _ - if cc.symbols_have_underscore_prefix() + # Note that symbols_have_underscore_prefix does not work properly on macos + # if the compiler -g flag is used. See: + # https://github.com/mesonbuild/meson/issues/5482 + if ['darwin', 'ios'].contains(host_system) + asm_prefix_def = '-DPREFIX' + elif cc.symbols_have_underscore_prefix() asm_prefix_def = '-DPREFIX' else asm_prefix_def = '-UPREFIX'