Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461634 - media-video/mplayer-1.1.1-r1: patch to build with LTO features enabled
Summary: media-video/mplayer-1.1.1-r1: patch to build with LTO features enabled
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: media-video herd
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2013-03-13 13:28 UTC by cmuelle8
Modified: 2017-05-15 17:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch to let mplayer build using gcc's LTO options (mplayer-1.1-r1.ebuild.patch,407 bytes, patch)
2013-03-13 13:29 UTC, cmuelle8
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cmuelle8 2013-03-13 13:28:00 UTC
Though LTO is not officially supported in Gentoo yet, the patch adds just three lines to let the ebuild support it.

Basically, sed checks config.h if the EXTERN_PREFIX definition is properly terminated.  This definition gets improperly set with an embedded newline if lto options of gcc are enabled.

This bug should probably be fixed upstream as well.


Greetings

Reproducible: Always
Comment 1 cmuelle8 2013-03-13 13:29:42 UTC
Created attachment 341890 [details, diff]
ebuild patch to let mplayer build using gcc's LTO options

ebuild patch to let mplayer build using gcc's LTO options
Comment 2 Jiří Moravec 2013-04-14 23:36:40 UTC
Thanks for patch.
Comment 3 Sasha Medvedev 2013-04-28 05:19:00 UTC
Yes, thank you for the patch. I was naive to try the patch also with mplayer2. The compilation fail somewhere in the middle with a bunch of such messeges:

libmpcodecs/vf_fspp.c: Assembler messages:
libmpcodecs/vf_fspp.c:900: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_707106781' after expression
libmpcodecs/vf_fspp.c:905: Error: junk `C 0000000000000001 0000000000000001MM_2' after expression
libmpcodecs/vf_fspp.c:931: Error: junk `C 0000000000000001 0000000000000001MM_FIX_1_414213562_A' after expression
libmpcodecs/vf_fspp.c:947: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_382683433' after expression
libmpcodecs/vf_fspp.c:949: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_541196100' after expression
libmpcodecs/vf_fspp.c:951: Error: junk `C 0000000000000001 0000000000000001MM_FIX_1_306562965' after expression