diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2020-12-30 13:38:46 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-12-30 15:22:38 +0000 |
commit | d432ca10df4f5f311449e5433cd815770923cd4e (patch) | |
tree | da8b92dea7f95d4991a1b28452453adda9481f3a | |
parent | d18ddc2385dd5d22dda6a9b0fbc38bd0e761dcfb (diff) | |
download | gstreamer-plugins-good-d432ca10df4f5f311449e5433cd815770923cd4e.tar.gz |
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/846>
-rw-r--r-- | gst/deinterlace/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/deinterlace/meson.build b/gst/deinterlace/meson.build index 4c747b765..5eae029eb 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' |