Mercurial > libavutil.hg
changeset 476:3075323f2c2c libavutil
check for prefix on extern symbols in configure
author | mru |
---|---|
date | Tue, 18 Mar 2008 02:01:20 +0000 |
parents | 3213123cd4e7 |
children | 8d25a4b50588 |
files | internal.h |
diffstat | 1 files changed, 3 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Mon Mar 17 23:08:17 2008 +0000 +++ b/internal.h Tue Mar 18 02:01:20 2008 +0000 @@ -119,18 +119,10 @@ #endif // Use rip-relative addressing if compiling PIC code on x86-64. -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \ - defined(__OS2__) || defined(__APPLE__) || \ - (defined (__OpenBSD__) && !defined(__ELF__)) -# if defined(ARCH_X86_64) && defined(PIC) -# define MANGLE(a) "_" #a"(%%rip)" -# else -# define MANGLE(a) "_" #a -# endif -#elif defined(ARCH_X86_64) && defined(PIC) -# define MANGLE(a) #a"(%%rip)" +#if defined(ARCH_X86_64) && defined(PIC) +# define MANGLE(a) EXTERN_PREFIX #a"(%%rip)" #else -# define MANGLE(a) #a +# define MANGLE(a) EXTERN_PREFIX #a #endif /* debug stuff */