[FFmpeg-devel] [PATCH] swscale: add workaround for building 32 bit shared libs with gcc4.2 on 64 bit Mac OS X

Michael Niedermayer michaelni at gmx.at
Tue Jun 5 02:57:27 CEST 2012


On Mon, Jun 04, 2012 at 01:34:34PM -0600, Michael Bradshaw wrote:
> On Mon, Jun 4, 2012 at 11:24 AM, Michael Bradshaw
> <mbradshaw at sorensonmedia.com> wrote:
> > If that looks okay in general, I'll work on proper patch a patch.
> *work on a proper patch*
> 
> 
> I'm still not 100% sure if this is the correct way to do this, but
> I've attached what I hope to be a correct new patch. There's also an
> accompanying cosmetic patch that realigns things. Both are attached.
> 
> These patches allow me to properly build ffmpeg when configured as
> ./configure --enable-shared --disable-static --cc="gcc -m32" on my
> 64-bit Intel OS X machine using gcc4.2 (which it previously could
> not).
> 
> Let me know if anything is off or needs to be changed.
> 
> Thanks,
> 
> Michael

>  rgb2rgb_template.c |   38 +++++++++++++++++++-------------------
>  1 file changed, 19 insertions(+), 19 deletions(-)
> 85fda85977e4ed009a8ac166557aea4055563b36  0001-MANGLEd-swscale-x86-asm-to-save-registers.patch
> From b65e44d658ae6a48ed3b4b200066601e74916374 Mon Sep 17 00:00:00 2001
> From: Michael Bradshaw <mbradshaw at sorensonmedia.com>
> Date: Mon, 4 Jun 2012 13:15:58 -0600
> Subject: [PATCH 2/3] MANGLEd swscale x86 asm to save registers
> 
> register starvation caused gcc4.2 to fail building 32 bit shared libs
> on 64 bit OS X
> 
> Signed-off-by: Michael Bradshaw <mbradshaw at sorensonmedia.com>

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120605/c2219c94/attachment.asc>


More information about the ffmpeg-devel mailing list