[FFmpeg-devel] [PATCH] ppc: Fix building with --enable-pic with asm enabled on mach-o
Martin Storsjo
martin
Sun Jan 9 18:09:54 CET 2011
Currently, such a build fails with this error message:
libavcodec/ppc/fft_altivec_s.S:747:Parameter syntax error (parameter 2)
libavcodec/ppc/fft_altivec_s.S:747:Invalid mnemonic 'got(r2)'
I'm not sure if this is a correct fix, but a binary built with this
change passes fate-fft at least.
---
libavcodec/ppc/asm.S | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
index e372d53..a1976a7 100644
--- a/libavcodec/ppc/asm.S
+++ b/libavcodec/ppc/asm.S
@@ -66,7 +66,7 @@ X(\name):
.endm
.macro movrel rd, sym
-#if CONFIG_PIC
+#if CONFIG_PIC && !defined(__APPLE__)
lwz \rd, \sym at got(r2)
#else
lis \rd, \sym at ha
--
1.7.3.1
More information about the ffmpeg-devel
mailing list