What's passed for --enable-ldflags is for ffmpeg using cc-as-ld but
not just using CCLD, so pass in TOOLCHAIN_OPTIONS. For PowerPC,
only pass --enable-altivec on ppce600 (only case of it we support)
otherwise disable as ffmpeg defaults to enabled.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
\
"
+EXTRA_OECONF_append_powerpc += "--${@['disable-altivec','enable-altivec'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce600']]}"
+
FFMPEG_LIBS = "libavcodec libavdevice libavformat \
libavutil libpostproc libswscale libavfilter"
--arch=${TARGET_ARCH} \
--enable-cross-compile \
--extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
- --extra-ldflags="${TARGET_LDFLAGS}" \
+ --extra-ldflags="${TARGET_LDFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
--enable-hardcoded-tables \
${EXTRA_FFCONF} \
"