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

Patrice Bensoussan patrice.bensoussan
Fri Jul 7 02:37:29 CEST 2006


 >On Tue, Jul 04, 2006 at 11:27:02PM +0100, Patrice Bensoussan wrote:
 >>
 >> Here is a second version of the patch which fixes a few issues.
 >> Anyone willing to apply?

 >I've rejected the patch once and you have failed to answer any of my
 >points, plus your newest patch *still* does not apply.

 >It will stay rejected until you fix both these issues, so please don't
 >bother us with new incarnations of this thing until you have addressed
 >them.

 >Diego

First, my newest patch was sent on July 4 and was definitely working.
If you apply the patch 3 days later, I don't see how I can prevent  
other patches from breaking it.

Second, here are some further info about why this patch is needed:
To cross compile on Mac OS X, you need to pass -isysroot when  
compiling *AND* when linking.

The issue is that is you pass it to both --extra-ldflags and --extra- 
cflags gcc will complain whenever both CFLAGS and LDFLAGS are passed  
at the same time (like in configure). That's why I added a --extra- 
commong-flags which can be used for flags required for both and which  
cannot be duplicated on the command line.

This is really helpful to cross compile and then generate an  
universal binary with lipo.

Please let me know if I should spend some time to update the patch,  
or if you will reject it anyway.

Patrice





More information about the ffmpeg-devel mailing list