[FFmpeg-trac] #7790(build system:new): Endianness detection breaks with LTO

FFmpeg trac at avcodec.org
Thu Mar 14 11:24:41 EET 2019


#7790: Endianness detection breaks with LTO
-------------------------------------+-------------------------------------
             Reporter:  RedDwarf82   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  build
                                     |  system
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by RedDwarf82):

 It's a buildroot gcc build. I can see "-flto" was added to
 BR2_TARGET_OPTIMIZATION, which is why it's the default.

 I can workaround my specific case. And I don't expect lots of people (but
 probably more than 1) to have gcc with LTO enabled by default. So feel
 free to close the issue if you want to.

 But at the same time it seems to me that depending on people not enabling
 it "behind FFmpegs back" is error-prone.
 I would say at the very least the check in
 https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/c2a221c5ae5017e11654b9688ac97e9f5d3570b2:/configure#l5596
 should also check if it can find "45 *47 *49 *42". If it can't find either
 configure should fail.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7790#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list