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

Ronald S. Bultje rsbultje at gmail.com
Tue Jul 12 13:51:57 EEST 2016


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.

Ronald


More information about the ffmpeg-devel mailing list