mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
The PPC SIMD code is selected at runtime, but configure added -maltivec -mabi=altivec and -mvsx to CFLAGS, so GCC could emit AltiVec and VSX instructions in any function. It does, so a default PPC32 build crashes on CPUs without AltiVec. Collect the flags in ALTIVECFLAGS and VSXFLAGS and add them only to the ALTIVEC-OBJS and VSX-OBJS objects and to the header check of util_altivec.h. VSX is only enabled on little-endian, where the AltiVec code loads and stores with VSX, so there the AltiVec files get the VSX flags, as they did through CFLAGS. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>