aboutsummaryrefslogtreecommitdiff
path: root/libavutil/x86_cpu.h
diff options
context:
space:
mode:
authorDiego Biurrun2007-04-27 09:32:31 +0000
committerDiego Biurrun2007-04-27 09:32:31 +0000
commite69364b700a6c0cb411ddc7737bc8e9e701d0cb8 (patch)
tree5a2ef022abf8fea43fc5115769e9319a32a99027 /libavutil/x86_cpu.h
parent660db1d6e9f7d8ad25b6362e17cc3fcc8e597bef (diff)
Mark code parts that cannot work on AMD64 due to broken relocations as such.
This allows building shared libraries on AMD64 again. based on a patch by Diego 'Flameeyes' Pettenò and suggestions by Michael original thread: Date: Wed, 18 Apr 2007 11:26:12 +0200 Subject: [Ffmpeg-devel] [PATCH] (try 2) Build shared libraries on AMD64 again Originally committed as revision 8849 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/x86_cpu.h')
-rw-r--r--libavutil/x86_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/x86_cpu.h b/libavutil/x86_cpu.h
index ebd60ff7f4..2cbef0b785 100644
--- a/libavutil/x86_cpu.h
+++ b/libavutil/x86_cpu.h
@@ -61,4 +61,8 @@
# define CONFIG_7REGS 1
#endif
+#if defined(ARCH_X86_64) && defined(PIC)
+# define BROKEN_RELOCATIONS 1
+#endif
+
#endif /* AVUTIL_X86CPU_H */