mplayer / mencoder fail to link when compiling with -flto
|Reported by:||Mayer Jocelyn||Owned by:||beastd|
|Reproduced by developer:||no||Analyzed by developer:||no|
Summary of the bug:
How to reproduce:
» Make sure '-flto' is set in build flags
» try to build mplayer with --enable-libass
» mplayer & mencoder link would fail with multiple undefined reference to
sse_int32_map_factor' and sse_int32_80h' in libmpcodecs/vf_ass.c
This has been reproduced with (old) 1.3.0 version and newer 1.4 version.
As far as I can see, no fix have been committed for this in trunk.
A workaround is available in gentoo linux bugtracking system:
https://bugs.gentoo.org/650458 with a patch available, which follow for easier potential fix.
This patch applied make the link succesful.