mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
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/845>
This commit is contained in:
parent
39c6bc0507
commit
219b659320
1 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue