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

Patrice Bensoussan patrice.bensoussan
Wed Jul 5 00:27:02 CEST 2006


Here is a second version of the patch which fixes a few issues.  
Anyone willing to apply?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch2.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060704/362de058/attachment.txt>
-------------- next part --------------

On 1 Jul 2006, at 20:45, Patrice Bensoussan wrote:

> Hello,
> 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 tools:
> configure  --cross-compile --extra-common-flags="-isysroot / 
> Developer/SDKs/MacOSX10.4u.sdk -arch i386"
> --cpu=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.
> Regards,
> Patrice
> <patch.txt>

More information about the ffmpeg-devel mailing list