[FFmpeg-user] Patch for building ffmpeg on OS X Tiger

Joe Sewell ultrajoe at spamcop.net
Sat Jul 16 04:22:53 CEST 2011

I'm a lowly MacPorts user, running on an "ancient" (by today's  
standards) PowerMac G4. I discovered that the current ffmpeg build  
available via MacPorts (version 0.7.1) doesn't build under Tiger. The  
MacPorts team informed me that the -dylib-compatibility-version switch  
needs to have a non-zero value under Tiger.

I'm attaching a patch file (not created with git ... sorry, but I  
don't build ffmpeg using git) created using diff -u. If you UNIX geeks  
can't handle that, then I apologize in advance; somebody else who  
knows what they're doing should've fixed it first. :)
-------------- next part --------------
--- configure.orig	2011-06-21 15:29:25.000000000 -0400
+++ configure	2011-07-14 19:36:45.000000000 -0400
@@ -2435,7 +2435,12 @@
         enable malloc_aligned
         gas="gas-preprocessor.pl $cc"
         enabled ppc && add_asflags -force_cpusubtype_ALL
-        SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
+        build_os_ver=$(uname -r)
+        if test ${build_os_ver:0:1} = 8; then
+        	SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION)'
+        else
+        	SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
+        fi
         enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
         strip="${strip} -x"
         add_ldflags -Wl,-dynamic,-search_paths_first

More information about the ffmpeg-user mailing list