[FFmpeg-devel] [PATCH] Fix broken osx powerpc build

Pavel Koshevoy pkoshevoy at gmail.com
Tue Jul 12 16:46:38 EEST 2016


On Jul 12, 2016 05:14, "Ronald S. Bultje" <rsbultje at gmail.com> wrote:
>
> Hi,
>
> On Mon, Jul 11, 2016 at 9:56 PM, Jing Yu <jingyu-at-google.com at ffmpeg.org>
> wrote:
>
> >  .macro movrel rd, sym, gp
> > +#ifdef __APPLE__
> > +    ld      \rd, \sym at got(r2)
> > +#else
> >      ld      \rd, \sym at got(2)
> > +#endif
> >  .endm
>
>
> Does something like this work? (Looks a little more readable)
>
> #ifdef __APPLE__
> #define ARG_2 r2
> #else
> #define ARG_2 2
> #endif
>
> and then use ARG_2 instead of 2/r2.

It's not just r2, there is also r1, r12, etc... I've used R(n) macro instead

    Pavel


More information about the ffmpeg-devel mailing list