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'