[Ffmpeg-devel] [PATCH] Fix/Allow cross compilation on Mac OS X with latest development tools

Patrice Bensoussan patrice.bensoussan
Sat Jul 1 21:45:10 CEST 2006


Here is a patch to allow cross compilation on Mac OS X 10.4 with the  
latest development tools. It seems that Apple has changed the way the  
options should be passed to gcc. Basically, -syslibroot doesn't seem  
to be allowed with -isysroot and cause configure to fail when passing  
them with --extra-cflags and --extra-ldflags.

I have added a -extra-common-flags for flags which should be used for  
both compilation and link. This way, you can cross compile for Intel  
on a PowerPC Mac with the following line using the latest development  

configure  --cross-compile --extra-common-flags="-isysroot /Developer/ 
SDKs/MacOSX10.4u.sdk -arch i386"

I guess it should work the other way around too (cross compiler for  
PowerPC on an Intel Mac). If anyone can try this, it would be nice.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060701/4cb68ab1/attachment.txt>
-------------- next part --------------

More information about the ffmpeg-devel mailing list