openh264
openh264 copied to clipboard
Cross compiling from an macOS ARM64 machine to x86_64 fails
I just tried updating from 1.8.0 to 2.4.0 and noticed that the makefile is set up in a way that makes it impossible to cross-compile from an ARM64 machine (M2 Ultra in this case) to Intel x86_64.
Make invocation is like this:
make OS=darwin ARCH=x86_64
But -arch x86_64 is not passed to CFLAGS and LDFLAGS so the build fails.
I assume that the reverse (cross-compiling from an Intel machine to ARM64) will work but haven't tried it.