diff --git a/mangle.h b/mangle.h index a4d232e26f..7c8f9ef1f0 100644 --- a/mangle.h +++ b/mangle.h @@ -31,6 +31,13 @@ #define attribute_used #endif +#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC) +# define PIC +#endif +#if ARCH_X86_64 && defined(PIC) +#define MANGLE(a) EXTERN_PREFIX #a "(%%rip)" +#else #define MANGLE(a) EXTERN_PREFIX #a +#endif #endif /* MPLAYER_MANGLE_H */