meson: Assorted fixes for building under Cerbero
Hi,
This PR is to enable the usage of this fork with Cerbero (gstreamer/cerbero#215). I found several issues with the compiler set we use there:
- the
ios
value ofhost_machine.system()
strikes again (it was not handled here, therefore causing Nasm to buildelf
objects) - missing
STACK_ALIGNMENT
value for Nasm objects - Arm64 Darwin jobs were unable to execute the
version.py
script due to the way we clone the repo, and because they were executed withnative: false
- x264 is also affected by Android x86's bug re: insufficient registers when targeting API < 24, which requires
-mstackrealign
- The
-Wl,-z,notext
was applied unconditionally, even under MINGW32 which usesld.bfd
yet does not support that ELF-specific flag - Android x86 requires
-fPIC
, but Meson does not handle the default ofb_staticpic
anywhere
I also took the chance and modernized the version.py
script, making sure text capturing was already handled by subprocess.run
.
Let me know what you think.
Edited by amyspark