[Ffmpeg-devel] [patch] Darwin shared object support

Sam Hocevar sam
Thu Feb 16 22:46:48 CET 2006


   Hello, this little patch adds the proper mangling information for
symbols in OS X Mach-O shared objects.

Regards,
-- 
Sam.
-------------- next part --------------
Index: libavcodec/libpostproc/mangle.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/libpostproc/mangle.h,v
retrieving revision 1.3
diff -u -r1.3 mangle.h
--- libavcodec/libpostproc/mangle.h	18 Dec 2004 03:07:15 -0000	1.3
+++ libavcodec/libpostproc/mangle.h	26 Jan 2006 22:02:55 -0000
@@ -19,6 +19,8 @@
 #else
 #if defined(ARCH_X86_64) && defined(PIC)
 #define MANGLE(a) #a"(%%rip)"
+#elif defined(CONFIG_DARWIN)
+#define MANGLE(a) "_" #a
 #else
 #define MANGLE(a) #a
 #endif
Index: libavutil/common.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/common.h,v
retrieving revision 1.160
diff -u -r1.160 common.h
--- libavutil/common.h	22 Jan 2006 18:34:17 -0000	1.160
+++ libavutil/common.h	26 Jan 2006 22:02:55 -0000
@@ -260,6 +260,8 @@
 #    else
 #        if defined(ARCH_X86_64) && defined(PIC)
 #            define MANGLE(a) #a"(%%rip)"
+#        elif defined(CONFIG_DARWIN)
+#            define MANGLE(a) "_" #a
 #        else
 #            define MANGLE(a) #a
 #        endif



More information about the ffmpeg-devel mailing list