[MPlayer-dev-eng] [PATCH] Fix MPlayer to compile on Darwin/x86_86
Diego Biurrun
diego at biurrun.de
Sat Jun 6 17:59:58 CEST 2009
On Sat, Jun 06, 2009 at 02:57:33PM +0200, Guillaume POIRIER wrote:
>
> --- mangle.h (revision 29344)
> +++ mangle.h (working copy)
> @@ -31,6 +31,14 @@
>
> +/* Use rip-relative addressing if compiling PIC code (or code for Darwin)
> + on x86-64. */
> +#if ARCH_X86_64 && (defined(PIC) || defined(__APPLE__))
> +# define LOCAL_MANGLE(a) #a "(%%rip)"
> +#else
> +# define LOCAL_MANGLE(a) #a
> +#endif
I wonder why you need to check for __APPLE__, but libavutil/internal.h
does not need it...
Diego
More information about the MPlayer-dev-eng
mailing list