ffmpeg: link the symbol stubs into the ffmpeg unit tests
A stubbed FFmpeg build carries unresolved references into OpenSSL and
VAAPI. FindFFmpeg.cmake deliberately keeps the stub libraries out of
the FFmpeg::av* link interface, so nothing provides those symbols to
consumers.
* explicitly link the stubs in qt_internal_multimedia_link_ffmpeg_stubs
when LINK_FFMPEG_STUBS is given
* link with --no-as-needed to force linking the symbols stubs into the
binaries.
Fixes: QTBUG-133914
Pick-to: 6.12
Change-Id: I43890a1890b8d61fe929e02a7fe7058b27913d0b
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>