--- avidemux/ADM_core/include/ADM_mangle.h.orig	2009-02-23 19:40:36.000000000 +0100
+++ avidemux/ADM_core/include/ADM_mangle.h	2010-09-08 04:35:53.000000000 +0200
@@ -18,7 +18,7 @@
 // Use rip-relative addressing if compiling PIC code on x86-64.
 #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \
     defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__)) || \
-	defined(__APPLE__)
+        (defined(__APPLE__) && defined(ADM_CPU_X86_32))
 #    if defined(ADM_CPU_X86_64) && defined(PIC) && !defined(__MINGW32__)
 #        define MANGLE(a) "_" #a"(%%rip)"
 #        define FUNNY_MANGLE(x) x asm(MANGLE(x))
