[FFmpeg-devel] Compiling with Sun cc

Diego Biurrun diego
Thu Oct 2 11:21:19 CEST 2008


On Thu, Oct 02, 2008 at 01:38:22AM +0000, Carl Eugen Hoyos wrote:
> 
> I tested compilation of ffmpeg with Sun's cc 5.10 Linux_i386 2008/07/10
> asm was no problem, but mmx cannot be compiled, so I used --disable-mmx.
> Dependencies do not work, not even with -xM1

We would need a compiler-specific depend command to be set in configure,
similar to what we currently do for gcc.  Should be fairly easy if you
can figure out the correct flags.

> (How are dependencies for one run of make disabled?)

Comment out the last line of common.mak.

> Finally, the following inlined patch for mem.h was necessary:
> (The only thing that should be necessary)
> --- libavutil/mem.h     (Revision 15506)
> +++ libavutil/mem.h     (Arbeitskopie)
> @@ -26,7 +26,7 @@
> 
> -#ifdef __ICC
> +#if defined(__ICC) || defined(__SUNPRO_C)
>      #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
>      #define DECLARE_ASM_CONST(n,t,v)...
>  #elif defined(__GNUC__)

Should be OK.

Diego




More information about the ffmpeg-devel mailing list